Fix all PEP8 issues except E501
This commit is contained in:
parent
3d36cea4ac
commit
b74e86f48a
17 changed files with 49 additions and 42 deletions
|
@ -240,9 +240,9 @@ def sanitize_open(filename, open_mode):
|
|||
|
||||
# In case of error, try to remove win32 forbidden chars
|
||||
alt_filename = os.path.join(
|
||||
re.sub('[/<>:"\\|\\\\?\\*]', '#', path_part)
|
||||
for path_part in os.path.split(filename)
|
||||
)
|
||||
re.sub('[/<>:"\\|\\\\?\\*]', '#', path_part)
|
||||
for path_part in os.path.split(filename)
|
||||
)
|
||||
if alt_filename == filename:
|
||||
raise
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue