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

2010-08-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> 2to3 does not convert __builtins__.file ___ Python tracker ___ _

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

2010-08-19 Thread Brian Curtin
New submission from Brian Curtin : """ 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 abou