New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2to3 does relative import for modules not in a package. #48251
Comments
Create an empty directory with only 2 files, foo.py and bar.py, both foo.py: Running 2to3 results in the following patch for foo.py: However, the resulting foo.py fails to run - the 2 files are not in a | ValueError: Attempted relative import in non-package Attaching a patch which checks there is an __init__.py in the same |
Thanks. Fixed in r66707. |
I must be going crazy, but I can't see r66707 in the trunk, the py3k |
On Fri, Oct 3, 2008 at 7:39 PM, Mark Hammond <report@bugs.python.org> wrote:
You're not crazy; it's just hidden. :) It's in the 2to3 main line of development: /sandbox/trunk/2to3 I'll merge into the trunk and py3k soon. |
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: