Skip to content

Commit

Permalink
Turning a regular expression string into a raw-string
Browse files Browse the repository at this point in the history
  • Loading branch information
pfuntner committed Dec 26, 2024
1 parent bd2d868 commit fe5f249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/mtime
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ seconds = 0
arg = sys.argv[1]
while arg and allowedSuffixes:
# print "allowedSuffixes: %s" % allowedSuffixes
regexp = re.compile("((\d+\.?\d*|\d*\.?\d+)([%s]))" % ''.join(list(allowedSuffixes)))
regexp = re.compile(r"((\d+\.?\d*|\d*\.?\d+)([%s]))" % ''.join(list(allowedSuffixes)))
match = regexp.search(str(arg))
if match:
token = match.group(1)
Expand Down

0 comments on commit fe5f249

Please sign in to comment.