Updated from global requirements
Change-Id: I2e2bd3a38458e1307bcc0410da74dc76c0a5987a
This commit is contained in:
committed by
Mark J. Washenberger
parent
eb47b55dbd
commit
1f2eef510f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user