summaryrefslogtreecommitdiff
path: root/Cython/Debugger
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2015-07-25 14:05:59 +0200
committerPetr Viktorin <encukou@gmail.com>2015-07-25 15:22:52 +0200
commit46b99911e069e78342a3f18307032c8c6320aed8 (patch)
tree3e6e3b6c1499846791c2789de5db25f3451e3dc3 /Cython/Debugger
parent0927accf24a3cccd57e21858abbc8f9b5fe6c6d7 (diff)
downloadcython-46b99911e069e78342a3f18307032c8c6320aed8.tar.gz
2to3: Apply the 'except' fixer
Diffstat (limited to 'Cython/Debugger')
-rw-r--r--Cython/Debugger/DebugWriter.py2
-rw-r--r--Cython/Debugger/Tests/test_libcython_in_gdb.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Debugger/DebugWriter.py b/Cython/Debugger/DebugWriter.py
index c5b16b414..a8654ef70 100644
--- a/Cython/Debugger/DebugWriter.py
+++ b/Cython/Debugger/DebugWriter.py
@@ -61,7 +61,7 @@ class CythonDebugWriter(object):
try:
os.makedirs(self.output_dir)
- except OSError, e:
+ except OSError as e:
if e.errno != errno.EEXIST:
raise
diff --git a/Cython/Debugger/Tests/test_libcython_in_gdb.py b/Cython/Debugger/Tests/test_libcython_in_gdb.py
index 683f4c7c2..afef6b27a 100644
--- a/Cython/Debugger/Tests/test_libcython_in_gdb.py
+++ b/Cython/Debugger/Tests/test_libcython_in_gdb.py
@@ -36,7 +36,7 @@ def print_on_call_decorator(func):
try:
return func(self, *args, **kwargs)
- except Exception, e:
+ except Exception as e:
_debug("An exception occurred:", traceback.format_exc(e))
raise