Update helpers.py

This commit is contained in:
enkore 2016-07-16 00:14:18 +02:00 committed by GitHub
parent ff7d909135
commit 7f68acf6ba

View file

@ -379,7 +379,7 @@ class FnmatchPattern(PatternBase):
pattern = posixpath.normpath(pattern).rstrip(posixpath.sep) + posixpath.sep + '*' + posixpath.sep
else:
pattern = posixpath.normpath(pattern) + posixpath.sep + '*'
self.pattern = pattern
# fnmatch and re.match both cache compiled regular expressions.