[py-svn] r37197 - py/branch/config/py/code
fijal at codespeak.net
fijal at codespeak.net
Tue Jan 23 15:59:51 CET 2007
Author: fijal
Date: Tue Jan 23 15:59:49 2007
New Revision: 37197
Modified:
py/branch/config/py/code/representation.py
Log:
kill some dead code, which seems to be dead for at least a year by now.
Modified: py/branch/config/py/code/representation.py
==============================================================================
--- py/branch/config/py/code/representation.py (original)
+++ py/branch/config/py/code/representation.py Tue Jan 23 15:59:49 2007
@@ -69,29 +69,3 @@
for x in lines:
self.out.line(indent + x)
return
-
- # XXX reinstate the following with a --magic option?
- # the following line gets user-supplied messages (e.g.
- # for "assert 0, 'custom message'")
- msg = getattr(getattr(excinfo, 'value', ''), 'msg', '')
- info = None
- if not msg:
- special = excinfo.errisinstance((SyntaxError, SystemExit, KeyboardInterrupt))
- if not self.config.option.nomagic and not special:
- try:
- info = excinfo.traceback[-1].reinterpret() # very detailed info
- except KeyboardInterrupt:
- raise
- except:
- if self.config.option.verbose >= 1:
- self.out.line("[reinterpretation traceback]")
- py.std.traceback.print_exc(file=py.std.sys.stdout)
- else:
- self.out.line("[reinterpretation failed, increase "
- "verbosity to see details]")
- # print reinterpreted info if any
- if info:
- lines = info.split('\n')
- self.out.line('>' + indent[:-1] + lines.pop(0))
- for x in lines:
- self.out.line(indent + x)
More information about the pytest-commit
mailing list