aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-27 23:31:55 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-27 23:31:55 +0100
commite08bee320e7c2933590d108ff4f8546b4dff935f (patch)
treecc967b5c5e16aeed1e15c9e7cb58d15094fa55e2 /youtube_dl/utils.py
parent96731798dbdd5a8878ac5cf29b69c6c7c821311b (diff)
Use except .. as everywhere (#180)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 4d098a377..29e1b0e97 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -177,7 +177,7 @@ def sanitize_open(filename, open_mode):
return (sys.stdout, filename)
stream = open(encodeFilename(filename), open_mode)
return (stream, filename)
- except (IOError, OSError), err:
+ except (IOError, OSError) as err:
# In case of error, try to remove win32 forbidden chars
filename = re.sub(ur'[/<>:"\|\?\*]', u'#', filename)