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 should detect and delete import of removed statvfs module #49502
Comments
It should also try to convert stuff like from statvfs import F_BAVAIL, F_FRSIZE
status = os.statvfs(directory)
available = status[F_BAVAIL]/((1024*1024)/status[F_FRSIZE] |
Hmm. 2to3 doesn't currently mess with the stat module and os.stat the |
Benjamin Peterson writes: > Hmm. 2to3 doesn't currently mess with the stat module and os.stat the So what? You *can't* import a nonexistent module, so the import |
On Sat, Feb 14, 2009 at 4:33 AM, Stephen J. Turnbull
No, the programmer should remove the import statement when he's |
Benjamin, you seem to have rejected this feature request. Close it? |
Closing based on Benjamin's comments. |
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: