You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-10-20.22:59:08.762>created_at=<Date2013-07-16.21:10:50.155>labels= ['type-bug', 'expert-2to3', 'OS-windows']
title='fix_import (2to3 fixer) is not case-sensitive'updated_at=<Date2021-10-20.22:59:08.762>user='https://github.com/ProgVal'
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.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: