Switched to using Python 3.4.

This commit is contained in:
Joey Payne 2016-01-25 11:33:57 -07:00
commit a8f69c2a62
8 changed files with 82 additions and 97 deletions

6
png.py
View file

@ -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)