|
|
@ -99,7 +99,7 @@ def sanitize_open(filename, open_mode): |
|
|
|
return (stream, filename) |
|
|
|
except (IOError, OSError), err: |
|
|
|
# In case of error, try to remove win32 forbidden chars |
|
|
|
filename = re.sub(ur'[<>:"\|\?\*]', u'#', filename) |
|
|
|
filename = re.sub(ur'[/<>:"\|\?\*]', u'#', filename) |
|
|
|
|
|
|
|
# An exception here should be caught in the caller |
|
|
|
stream = open(filename, open_mode) |
|
|
|