Commits

Anonymous committed a8eabb0

Printing traceback before interruption message

Comments (0)

Files changed (2)

ropemacs/lisputils.py

-import sys
+import threading
 import traceback
-import threading
 
 from Pymacs import lisp
 from rope.base import taskhandle, exceptions
             if raised is not None:
                 description = type(raised).__name__ + ': ' + str(raised)
                 raise exceptions.InterruptedTaskError(
-                    'Task <%s> was interrupted.\nReason: <%s>\nTraceback: %s' %
-                    (self.name, description, calculate.traceback))
+                    '%s\nTask <%s> was interrupted.\nReason: <%s>\n' %
+                    (calculate.traceback, self.name, description))
         except:
             handle.stop()
             message('%s interrupted!' % self.name)

ropemacs/refactor.py

 import rope.base.change
-import rope.base.taskhandle
 import rope.contrib.generate
 import rope.refactor.extract
 import rope.refactor.inline