Skip to content

Commit

Permalink
Merge pull request #340 from dhomeier/fix-re-py311
Browse files Browse the repository at this point in the history
Move re-flag in `_translate_glob` to front to build with Python 3.11
  • Loading branch information
pkgw authored Oct 26, 2022
2 parents 8cf07c2 + eb1bacf commit 3aba4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def _translate_glob(pat):
translated_parts.append(_translate_glob_part(part))
os_sep_class = "[%s]" % re.escape(SEPARATORS)
res = _join_translated(translated_parts, os_sep_class)
return "{res}\\Z(?ms)".format(res=res)
return f"(?ms){res}\\Z"


def _join_translated(translated_parts, os_sep_class):
Expand Down

0 comments on commit 3aba4ce

Please sign in to comment.