summaryrefslogtreecommitdiff
path: root/glanceclient/common/utils.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-08-05 18:03:37 -0300
committerMark J. Washenberger <mark.washenberger@markwash.net>2013-08-10 10:49:11 -0700
commit1f2eef510f61ef90be4868c0e67c1e0861613b7d (patch)
treedc51cb4bb3a057a873e02a73cde96908b666409b /glanceclient/common/utils.py
parenteb47b55dbd078aea4eedcc70ad44d189510c6644 (diff)
downloadpython-glanceclient-1f2eef510f61ef90be4868c0e67c1e0861613b7d.tar.gz
Updated from global requirements
Change-Id: I2e2bd3a38458e1307bcc0410da74dc76c0a5987a
Diffstat (limited to 'glanceclient/common/utils.py')
-rw-r--r--glanceclient/common/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/common/utils.py b/glanceclient/common/utils.py
index 82360df..88f7621 100644
--- a/glanceclient/common/utils.py
+++ b/glanceclient/common/utils.py
@@ -212,7 +212,7 @@ def get_file_size(file_obj):
size = file_obj.tell()
file_obj.seek(curr)
return size
- except IOError, e:
+ except IOError as e:
if e.errno == errno.ESPIPE:
# Illegal seek. This means the file object
# is a pipe (e.g the user is trying