Commit 7b002c1b by willmcgugan@gmail.com

fix

parent 1c1b19de
...@@ -88,7 +88,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS): ...@@ -88,7 +88,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
} }
if sys.platform == 'win32': if sys.platform == 'win32':
_invalid_path_chars = ''.join(char(n) for n in xrange(31)) + '\\:*?"<>|' _invalid_path_chars = ''.join(chr(n) for n in xrange(31)) + '\\:*?"<>|'
else: else:
_invalid_path_chars = '\0' _invalid_path_chars = '\0'
_re_invalid_path_chars = re.compile('|'.join(re.escape(c) for c in _invalid_path_chars), re.UNICODE) _re_invalid_path_chars = re.compile('|'.join(re.escape(c) for c in _invalid_path_chars), re.UNICODE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment