[New-bugs-announce] [issue11466] getpass.getpass doesn't close tty file

Steffen Daode Nurpmeso report at bugs.python.org
Fri Mar 11 12:54:52 CET 2011


New submission from Steffen Daode Nurpmeso <sdaoden at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11466>
_______________________________________


More information about the New-bugs-announce mailing list