diff --git a/setupbase.py b/setupbase.py index 21a1103f..0da45b6d 100644 --- a/setupbase.py +++ b/setupbase.py @@ -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):