[issue9648] 2to3 doesn't convert file usage to an open equivalent

2010-08-20 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - duplicate status: open - closed superseder: - 2to3 does not convert __builtins__.file ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9648

[issue9648] 2to3 doesn't convert file usage to an open equivalent

2010-08-19 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: with file(sample.py, r) as f: pass The above code comes out of 2to3 with no modifications suggested. file is gone in 3.x and could be substituted with open usage in most cases. We would also have to handle or otherwise notify the user