summaryrefslogtreecommitdiff
path: root/lib/extras.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-11-20 20:00:35 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-11-20 20:00:35 -0800
commit390e43fcb191d1b52ca747e2b71f938f9df52c95 (patch)
treef8c6259410ddf8087fba730faacc906b09878106 /lib/extras.py
parent7a2dd85caa7553d163f6579eb513a370ef069a0e (diff)
downloadpsycopg2-390e43fcb191d1b52ca747e2b71f938f9df52c95.tar.gz
Use modern except syntax throughout project
The syntax "except Exception, exc:" is deprecated. All Python versions supported by psycopg2 support the newer, modern syntax. Forward compatible with future Python versions.
Diffstat (limited to 'lib/extras.py')
-rw-r--r--lib/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extras.py b/lib/extras.py
index 798b3d2..8abb14f 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -363,7 +363,7 @@ class NamedTupleCursor(_cursor):
try:
from collections import namedtuple
- except ImportError, _exc:
+ except ImportError as _exc:
def _make_nt(self):
raise self._exc
else: