[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

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

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa type: - behavior versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2013-01-11 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276 ___ ___ Python-bugs-list

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-04-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276 ___ ___ Python-bugs-list

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-04-17 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Another example: when processing if hasattr(httplib, 'ssl'): pass It doesn't spot that httplib should be changed to http.client. -- nosy: +vinay.sajip ___ Python tracker

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-03-15 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This bug also affects poster. http://bitbucket.org/jaraco/poster (httplib reference in httpstreaming.py) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-03-15 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: it looks like lib maintainers can work around the limitation by using the syntax: import _winreg as winreg And then reference the name winreg (or any other preferred name). -- ___ Python

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-03-14 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This bug affects distutils2. See #11502. -- nosy: +jaraco ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276 ___

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-02-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I'm trying to remember if this was intentional or not... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276 ___

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-02-22 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: While directly referencing a module on its own is useless, this is an issue if the module is used in e.g., an assignment: ``blah = cPickle`` is not changed. -- nosy: +brett.cannon stage: - needs patch

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-02-21 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: $ cat test.py import cPickle cPickle cPickle.load $ 2to3 -f imports test.py RefactoringTool: Refactored test.py --- test.py (original) +++ test.py (refactored) @@ -1,3 +1,3 @@ -import cPickle +import pickle

[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes

2011-02-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276 ___