[issue5312] errno not being set
Georg Brandl
report at bugs.python.org
Thu Feb 19 11:31:16 CET 2009
Georg Brandl <georg at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5312>
_______________________________________
More information about the Python-bugs-list
mailing list