Georg Brandl <ge...@python.org> added the comment: The problem is in os.py. This patch fixes it:
Index: Lib/os.py =================================================================== --- Lib/os.py (Revision 69769) +++ Lib/os.py (Arbeitskopie) @@ -372,8 +372,8 @@ saved_exc = e saved_tb = tb if saved_exc: - raise error(saved_exc).with_traceback(saved_tb) - raise error(last_exc).with_traceback(tb) + raise saved_exc.with_traceback(saved_tb) + raise last_exc.with_traceback(tb) I suspect there may be other instances of this problem (I guess 2to3 converted that). _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5312> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com