[issue7162] 2to3 does not convert __builtins__.file

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue7162] 2to3 does not convert __builtins__.file

2014-07-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7162 ___

[issue7162] 2to3 does not convert __builtins__.file

2014-07-02 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7162 ___ ___

[issue7162] 2to3 does not convert __builtins__.file

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.6, Python 2.7, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7162 ___

[issue7162] 2to3 does not convert __builtins__.file

2010-03-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Unfortunately this patch would also replace legitimate uses of a file function. -- assignee: - benjamin.peterson nosy: +amaury.forgeotdarc, benjamin.peterson stage: - patch review ___

[issue7162] 2to3 does not convert __builtins__.file

2010-03-07 Thread Ryan Coyner
Ryan Coyner rcoy...@gmail.com added the comment: I thought the whole point was that file[1] was removed in 3.0[2]? Or, are you saying that if somebody overloaded file with def file(...)? If that is the case would it be reasonable to check like this? file in

[issue7162] 2to3 does not convert __builtins__.file

2010-03-07 Thread Joe Amenta
Joe Amenta ament...@msu.edu added the comment: Yes, the idea was that it doesn't seem outlandish for someone to do: def file(something): do_stuff() You can use lib2to3.fixer_util.is_probably_builtin for this... modified the patch and attached. -- Added file:

[issue7162] 2to3 does not convert __builtins__.file

2010-02-27 Thread Ryan Coyner
Ryan Coyner rcoy...@gmail.com added the comment: Patch attached. Unit test and documentation included. COMMITMSG: Adds a new fixer to lib2to3 which replaces the deprecated builtin file with open. -- keywords: +patch nosy: +rcoyner Added file:

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
New submission from Joe Amenta ament...@msu.edu: Step to reproduce: $ echo 'file(/some/file)' | python `which 2to3` - (replace python with whichever python executable version you wish to use, e.g. ~/python-trunk/python or /usr/local/bin/python3.2 ) Expected result: Anything referring to the

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
Changes by Joe Amenta ament...@msu.edu: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7162 ___ ___ Python-bugs-list mailing