Issue11276
Created on 2011-02-21 20:32 by Arfrever, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Messages (7) | |||
|---|---|---|---|
| msg128991 - (view) | Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * ![]() |
Date: 2011-02-21 20:32 | |
$ 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 cPickle -cPickle.load +pickle.load RefactoringTool: Files that need to be modified: RefactoringTool: test.py |
|||
| msg129109 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2011-02-22 19:08 | |
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. |
|||
| msg129236 - (view) | Author: Benjamin Peterson (benjamin.peterson) * ![]() |
Date: 2011-02-24 01:28 | |
I'm trying to remember if this was intentional or not... |
|||
| msg130915 - (view) | Author: Jason R. Coombs (jaraco) * ![]() |
Date: 2011-03-14 21:52 | |
This bug affects distutils2. See #11502. |
|||
| msg131032 - (view) | Author: Jason R. Coombs (jaraco) * ![]() |
Date: 2011-03-15 19:59 | |
This bug also affects poster. http://bitbucket.org/jaraco/poster (httplib reference in httpstreaming.py) |
|||
| msg131042 - (view) | Author: Jason R. Coombs (jaraco) * ![]() |
Date: 2011-03-15 21:37 | |
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). |
|||
| msg133924 - (view) | Author: Vinay Sajip (vinay.sajip) * ![]() |
Date: 2011-04-17 13:38 | |
Another example: when processing
if hasattr(httplib, 'ssl'):
pass
It doesn't spot that httplib should be changed to http.client.
|
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:13 | admin | set | github: 55485 |
| 2021-10-20 22:45:46 | iritkatriel | set | status: open -> closed superseder: Close 2to3 issues and list them here resolution: wont fix stage: needs patch -> resolved |
| 2015-03-08 07:57:44 | Claudiu.Popa | set | nosy:
+ Claudiu.Popa type: behavior |
| 2013-01-11 17:14:31 | brett.cannon | set | nosy:
- brett.cannon |
| 2011-04-19 15:33:38 | eric.araujo | set | nosy:
+ eric.araujo |
| 2011-04-17 13:38:29 | vinay.sajip | set | nosy:
+ vinay.sajip messages: + msg133924 |
| 2011-03-15 21:37:23 | jaraco | set | nosy:
brett.cannon, jaraco, benjamin.peterson, Arfrever messages: + msg131042 |
| 2011-03-15 20:00:00 | jaraco | set | nosy:
brett.cannon, jaraco, benjamin.peterson, Arfrever messages: + msg131032 |
| 2011-03-14 21:52:59 | jaraco | set | nosy:
+ jaraco messages: + msg130915 |
| 2011-02-24 01:28:22 | benjamin.peterson | set | nosy:
brett.cannon, benjamin.peterson, Arfrever messages: + msg129236 |
| 2011-02-22 19:08:20 | brett.cannon | set | nosy:
+ brett.cannon messages:
+ msg129109 |
| 2011-02-21 20:47:28 | Arfrever | set | nosy:
+ benjamin.peterson |
| 2011-02-21 20:32:50 | Arfrever | create | |

