Skip to content

Commit

Permalink
Remove old unused Python 3.5 code path.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Aug 11, 2023
1 parent 13fb066 commit ee7ee98
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,12 @@ def html_footnotes(id_=RE_ID, text=RE_TEXT):

def latex_citations(docname=RE_DOCNAME, id_=RE_ID,
label=RE_LABEL, text=RE_TEXT):
if sphinx.version_info < (3, 5):
return re.compile(
r'\\bibitem\[(?P<label>{label})]'
r'{{(?P<docname>{docname}):(?P<id_>{id_})}}\n'
r'(?P<text>{text})\n'.format(
docname=docname, label=label, id_=id_, text=text))
else:
return re.compile(
r'\\bibitem\[(?P<label>{label})]'
r'{{(?P<docname>{docname}):(?P<id_>{id_})}}\n'
r'\\sphinxAtStartPar\n'
r'(?P<text>{text})\n'.format(
docname=docname, label=label, id_=id_, text=text))
return re.compile(
r'\\bibitem\[(?P<label>{label})]'
r'{{(?P<docname>{docname}):(?P<id_>{id_})}}\n'
r'\\sphinxAtStartPar\n'
r'(?P<text>{text})\n'.format(
docname=docname, label=label, id_=id_, text=text))


def latex_citation_refs(docname=RE_DOCNAME, refid=RE_ID):
Expand Down

0 comments on commit ee7ee98

Please sign in to comment.