This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013年07月16日 21:10 by Valentin.Lorentz, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| fix_case-sensitivity_of_fix-import.patch | Valentin.Lorentz, 2013年07月16日 21:10 | Patch to fix case-sentitivity of fix_import on Windows | ||
| Messages (2) | |||
|---|---|---|---|
| msg193193 - (view) | Author: ProgVal (Valentin.Lorentz) | Date: 2013年07月16日 21:10 | |
In a project, I have a package with a module named Socket.py, and the __init__.py imports the "socket" module (from the standard Python lib). However, when fix_import went over it _on Windows_, it converted "import socket" to "from . import Socket". I also had this issue from a package containing a subpackage named "Math", and a __init__.py importing "math" (from the standard Python lib). This issue is caused by using os.path.exists(), which is case-insensitive on Windows. However, PEP 235 says imports are case-sensitive. I'm including a patch I have wrote for this. |
|||
| msg224357 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014年07月30日 22:27 | |
Can we set the stage to patch review please. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:48 | admin | set | github: 62677 |
| 2021年10月20日 22:59:08 | iritkatriel | set | status: open -> closed superseder: Close 2to3 issues and list them here resolution: wont fix stage: test needed -> resolved |
| 2019年04月26日 20:16:15 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2014年07月30日 22:33:11 | ezio.melotti | set | stage: test needed |
| 2014年07月30日 22:27:11 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg224357 versions: + Python 3.4, Python 3.5, - Python 3.3 |
| 2013年07月16日 21:12:09 | vstinner | set | nosy:
+ benjamin.peterson |
| 2013年07月16日 21:10:50 | Valentin.Lorentz | create | |