summaryrefslogtreecommitdiff
path: root/glanceclient/v1/images.py
diff options
context:
space:
mode:
authorDirk Mueller <dirk@dmllr.de>2013-04-22 16:38:55 +0200
committerDirk Mueller <dirk@dmllr.de>2013-04-22 16:38:55 +0200
commit45feb672af7cab42898fc0f249c6fbe5a4a36e12 (patch)
tree779b46f21812eb9cc5f9f99ea5cc166845b2aea9 /glanceclient/v1/images.py
parent11c2c40d46ce5efaaa9ff388347ad82c72307bec (diff)
downloadpython-glanceclient-45feb672af7cab42898fc0f249c6fbe5a4a36e12.tar.gz
Improve Python 3.x compatibility
Some mechanical translation of the deprecated except x,y construct. Should work with Python >= 2.6 just fine Change-Id: I394f9956b9e3e3d9f5f1e9ad50c35b13200af2a1
Diffstat (limited to 'glanceclient/v1/images.py')
-rw-r--r--glanceclient/v1/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/v1/images.py b/glanceclient/v1/images.py
index 99a2bd7..60e7bf0 100644
--- a/glanceclient/v1/images.py
+++ b/glanceclient/v1/images.py
@@ -207,7 +207,7 @@ class ImageManager(base.Manager):
obj_size = obj.tell()
obj.seek(0)
return obj_size
- except IOError, e:
+ except IOError as e:
if e.errno == errno.ESPIPE:
# Illegal seek. This means the user is trying
# to pipe image data to the client, e.g.