Switched to using Python 3.4.
This commit is contained in:
parent
768ef58434
commit
a8f69c2a62
8 changed files with 82 additions and 97 deletions
6
png.py
6
png.py
|
|
@ -1887,7 +1887,7 @@ class Reader:
|
|||
while True:
|
||||
try:
|
||||
type, data = self.chunk(lenient=lenient)
|
||||
except ValueError, e:
|
||||
except ValueError as e:
|
||||
raise ChunkError(e.args[0])
|
||||
if type == 'IEND':
|
||||
# http://www.w3.org/TR/PNG/#11IEND
|
||||
|
|
@ -2752,5 +2752,5 @@ def _main(argv):
|
|||
if __name__ == '__main__':
|
||||
try:
|
||||
_main(sys.argv)
|
||||
except Error, e:
|
||||
print >>sys.stderr, e
|
||||
except Error as e:
|
||||
print(e, file=sys.stderr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue