New submission from Steffen Daode Nurpmeso <sdao...@googlemail.com>:

Here is a patch which cures the following 

ResourceWarning: unclosed file <_io.TextIOWrapper name=3 mode='w+'
encoding='UTF-8'>

(This only fixes the bug, not the rest of this code...)
I did not try it out, but according to some hg cat's this also
applies to at least v3.2.

----------
components: Library (Lib)
files: getpass_fdclose.patch
keywords: patch
messages: 130560
nosy: eric.araujo, sdaoden
priority: normal
severity: normal
status: open
title: getpass.getpass doesn't close tty file
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file21079/getpass_fdclose.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11466>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to