diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-11-13 06:18:22 -0800 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-11-13 14:23:13 -0800 |
commit | 11c327f2d345019ee000cadd53836be655a846be (patch) | |
tree | 536c0b5099711681a9c815358f83d3e284960bf4 /tests/fips.py | |
parent | 704ff438b5aca2fcf26431233bfb3950ce8e677a (diff) | |
download | m2crypto-11c327f2d345019ee000cadd53836be655a846be.tar.gz |
Fix exception handling syntax for Python 3. [PEP-3110]
This syntax was backported to Python 2.6:
https://docs.python.org/2/whatsnew/2.6.html#pep-3110-exception-handling-changes
Diffstat (limited to 'tests/fips.py')
-rw-r--r-- | tests/fips.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fips.py b/tests/fips.py index 32eb75b..9cc50c5 100644 --- a/tests/fips.py +++ b/tests/fips.py @@ -4,5 +4,5 @@ try: fips_mode = int(f.read()) finally: f.close() -except Exception, e: +except Exception as e: fips_mode = 0 |