From 1f2eef510f61ef90be4868c0e67c1e0861613b7d Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 5 Aug 2013 18:03:37 -0300 Subject: Updated from global requirements Change-Id: I2e2bd3a38458e1307bcc0410da74dc76c0a5987a --- glanceclient/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glanceclient/common/utils.py') 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 -- cgit v1.2.1