Index: ensure_dependencies.py |
diff --git a/ensure_dependencies.py b/ensure_dependencies.py |
index 33ee20b94599b455663069695ae655e87184dadc..c1c71456560ec3ef06bde7ab45d6b925fa1cecfa 100755 |
--- a/ensure_dependencies.py |
+++ b/ensure_dependencies.py |
@@ -220,7 +220,7 @@ def read_deps(repodir): |
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 @@ def resolve_deps(repodir, level=0, self_update=True, overrideroots=None, skipdep |
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) |