Fix all PEP8 issues except E501

This commit is contained in:
Philipp Hagemeister 2014-11-23 22:21:46 +01:00
parent 3d36cea4ac
commit b74e86f48a
17 changed files with 49 additions and 42 deletions

View file

@ -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: