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
curses/textpad.py incorrectly and redundantly imports ascii #47489
Comments
Line 'import curses, ascii' should be replaced with 'import curses' |
The ascii module is used all around the file... if you don't import it, |
Sorry, I didn't not distinguish between curses module ascii and built-in "import curses.ascii as ascii" works. Is this a good fix? |
Or is it possible/better to use relative import? |
Ah, I now understand what you mean. The best, IMO, to avoid the confusion in the import and in the usage, is
Do you care to send a patch? Thank you! |
If you like curses_ascii you would probably like curses.ascii :) so here Patch with "patch -i curses-textpad-ascii.patch |
Commited in r64746. Thank you!! |
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: