This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients alex, benjamin.peterson, nikratio, serhiy.storchaka, vajrasky
Date 2013-06-06.10:25:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370514360.03.0.463460050051.issue18116@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is in io.open, not in getpass. Here is a test script.

$ ./python buffered_open_fd_leak.py 
buffered_open_fd_leak.py:7: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+'>
  tty = io.open(fd, 'w+', 1)
History
Date User Action Args
2013-06-06 10:26:00serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, alex, nikratio, vajrasky
2013-06-06 10:26:00serhiy.storchakasetmessageid: <1370514360.03.0.463460050051.issue18116@psf.upfronthosting.co.za>
2013-06-06 10:26:00serhiy.storchakalinkissue18116 messages
2013-06-06 10:25:59serhiy.storchakacreate