Commits

Anonymous committed 31df2bb

Patched for Python 3.

  • Participants
  • Parent commits 584d3eb

Comments (0)

Files changed (1)

File ropemode/decorators.py

 
     def _show(self, message):
         if message is None:
-            print message
+            print(message)
         else:
             self.message(message)
 
     def newfunc(*args, **kwds):
         try:
             func(*args, **kwds)
-        except Exception, e:
+        except e as Exception:
             trace = str(traceback.format_exc())
             short = 'Ignored an exception in ropemode hook: %s' % \
                     _exception_message(e)
     def newfunc(*args, **kwds):
         try:
             return func(*args, **kwds)
-        except exceptions.RopeError, e:
+        except e as RopeError:
             short = None
             if isinstance(e, input_exceptions):
                 short = _exception_message(e)