diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2021-03-03 21:54:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 21:54:30 +0000 |
commit | 1a4dc8293151e25977ae89789a58d9431e5a377d (patch) | |
tree | f86bb711f1bce6f78521f5393dfbfefb2e9d6f22 /Examples/test-suite/python/template_classes_runme.py | |
parent | cf7811b17890af6da7174e4e5a65ca38fc55c0e2 (diff) | |
parent | d38c8d512f988a2f332d0597c109231a1b1b805d (diff) | |
download | swig-1a4dc8293151e25977ae89789a58d9431e5a377d.tar.gz |
Merge branch 'master' into array_fix
Diffstat (limited to 'Examples/test-suite/python/template_classes_runme.py')
-rw-r--r-- | Examples/test-suite/python/template_classes_runme.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Examples/test-suite/python/template_classes_runme.py b/Examples/test-suite/python/template_classes_runme.py index 38b2d7a62..1bd133975 100644 --- a/Examples/test-suite/python/template_classes_runme.py +++ b/Examples/test-suite/python/template_classes_runme.py @@ -13,7 +13,7 @@ RectangleInt.static_onearg(1) fail = True try: rectangle.setPoint() -except TypeError, e: +except TypeError as e: fail = False if fail: raise RuntimeError("argument count check failed") @@ -22,7 +22,7 @@ if fail: fail = True try: rectangle.getPoint(0) -except TypeError, e: +except TypeError as e: fail = False if fail: raise RuntimeError("argument count check failed") @@ -30,7 +30,7 @@ if fail: fail = True try: RectangleInt.static_noargs(0) -except TypeError, e: +except TypeError as e: fail = False if fail: raise RuntimeError("argument count check failed") @@ -38,7 +38,7 @@ if fail: fail = True try: RectangleInt.static_onearg() -except TypeError, e: +except TypeError as e: fail = False if fail: raise RuntimeError("argument count check failed") |