Skip to content

Commit

Permalink
Move re-flag in _translate_glob to front for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
dhomeier committed Oct 26, 2022
1 parent 8cf07c2 commit eb1bacf
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 eb1bacf

Please sign in to comment.