summaryrefslogtreecommitdiff
path: root/tests/fips.py
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2015-11-13 06:18:22 -0800
committerCraig Rodrigues <rodrigc@FreeBSD.org>2015-11-13 14:23:13 -0800
commit11c327f2d345019ee000cadd53836be655a846be (patch)
tree536c0b5099711681a9c815358f83d3e284960bf4 /tests/fips.py
parent704ff438b5aca2fcf26431233bfb3950ce8e677a (diff)
downloadm2crypto-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.py2
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