Index: ensure_dependencies.py |
=================================================================== |
--- a/ensure_dependencies.py |
+++ b/ensure_dependencies.py |
@@ -220,7 +220,7 @@ |
if spec: |
result[key] = spec |
return result |
- except IOError, e: |
+ except IOError as e: |
if e.errno != errno.ENOENT: |
raise |
return None |
@@ -332,7 +332,7 @@ |
try: |
with io.open(source, 'rb') as handle: |
sourcedata = handle.read() |
- except IOError, e: |
+ except IOError as e: |
if e.errno != errno.ENOENT: |
raise |
logging.warning("File %s doesn't exist, skipping self-update" % source) |