[issue5252] 2to3 should detect and delete import of removed statvfs module

Stephen J. Turnbull report at bugs.python.org
Sat Feb 14 11:33:44 CET 2009


Stephen J. Turnbull <stephen at xemacs.org> added the comment:

Benjamin Peterson writes:

 > Hmm. 2to3 doesn't currently mess with the stat module and os.stat the
 > more common function. Also the new interface (attributes on the objects
 > returned) has been around since 2.2.

So what?  You *can't* import a nonexistent module, so the import
statement should be removed to save the programmer the trouble.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5252>
_______________________________________


More information about the Python-bugs-list mailing list