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

2016-05-29 Thread R. David Murray

R. David Murray added the comment:

Closing based on Benjamin's comments.

--
nosy: +r.david.murray
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2011-10-14 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Benjamin, you seem to have rejected this feature request. Close it?

--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-02-14 Thread Stephen J. Turnbull

Stephen J. Turnbull step...@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 rep...@bugs.python.org
http://bugs.python.org/issue5252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-02-14 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

On Sat, Feb 14, 2009 at 4:33 AM, Stephen J. Turnbull
rep...@bugs.python.org wrote:

 Stephen J. Turnbull step...@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.

No, the programmer should remove the import statement when he's
porting it to use the attributes of the statvfs call.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-02-13 Thread Stephen J. Turnbull

New submission from Stephen J. Turnbull step...@xemacs.org:

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]

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 81959
nosy: sjt
severity: normal
status: open
title: 2to3 should detect and delete import of removed statvfs module
type: feature request
versions: Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-02-13 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

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.

--
nosy: +benjamin.peterson
priority:  - low

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5252
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com