Python 3 compatibility

This commit is contained in:
Sebastian Huber
2015-11-12 11:15:23 +01:00
parent ab922fec9c
commit 04a52040ae
28 changed files with 284 additions and 283 deletions

View File

@@ -57,9 +57,9 @@ class exit(error):
if __name__ == '__main__':
try:
raise general('a general error')
except general, gerr:
print 'caught:', gerr
except general as gerr:
print('caught:', gerr)
try:
raise internal('an internal error')
except internal, ierr:
print 'caught:', ierr
except internal as ierr:
print('caught:', ierr)