Skip to content

Commit

Permalink
Merge pull request #22 from jehamilton/master
Browse files Browse the repository at this point in the history
Fixing re flags deprecation warning in python 3.6
  • Loading branch information
miracle2k committed May 10, 2018
2 parents 9b9c143 + be6981e commit 43abdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glob2/fnmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ def translate(pat):
res = '%s([%s])' % (res, stuff)
else:
res = res + re.escape(c)
return res + '\Z(?ms)'
return '(?ms)' + res + '\Z'

0 comments on commit 43abdc5

Please sign in to comment.