Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the regexs in the python code here to be raw strings. #414

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docutils_transforms_reps.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def apply(self):
elif name in ('replaces', 'replaced-by', 'requires'):
newbody = []
space = nodes.Text(' ')
for refrep in re.split(',?\s+', body.astext()):
for refrep in re.split(r',?\s+', body.astext()):
repno = int(refrep)
newbody.append(nodes.reference(
refrep, refrep,
Expand Down
2 changes: 1 addition & 1 deletion rep0/rep.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _parse_author(self, data):
author_list = []
for regex in (angled, paren, simple):
# Watch out for commas separating multiple names.
regex += u'(,\s*)?'
regex += r'(,\s*)?'
for match in re.finditer(regex, data):
# Watch out for suffixes like 'Jr.' when they are
# comma-separated from the name and thus cause issues when
Expand Down