[issue6256] Wrong stacklevel in warning for contextlib.nested

2009-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed. r7 and r73334 -- assignee: -> rhettinger nosy: +rhettinger resolution: -> accepted status: open -> closed ___ Python tracker __

[issue6256] Wrong stacklevel in warning for contextlib.nested

2009-06-10 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : This leads to unhelpful warnings: >>> with contextlib.nested(open("x", "w")) as f: pass ... /usr/local/lib/python3.1/contextlib.py:17: DeprecationWarning: With-statements now directly support multiple context managers return next(self.gen) Patch is attac