Skip to content

Commit

Permalink
Merge pull request #175 from Alexander-Serov/fix-raw-string
Browse files Browse the repository at this point in the history
fix: mark raw string to avoid SyntaxError
  • Loading branch information
liormizr committed May 31, 2024
2 parents 77868ad + f701b6d commit ac0ac5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3path/old_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def compile_pattern_parts(self, prefix, pattern, bucket):
new_regex_pattern += f'{self.sep}*(?s:{part.replace("**", ".*")})'
continue
new_regex_pattern += f'{self.sep}{fnmatch.translate(part)[:-2]}'
new_regex_pattern += '/*\Z'
new_regex_pattern += r'/*\Z'
return re.compile(new_regex_pattern).fullmatch


Expand Down

0 comments on commit ac0ac5b

Please sign in to comment.