Author eryksun
Recipients antoine.pietri, eryksun
Date 2014-03-24.06:15:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395641732.55.0.948201074366.issue21044@psf.upfronthosting.co.za>
In-reply-to
Content
This name attribute is documented here:

http://docs.python.org/3/library/io#io.FileIO.name

3.4 Source:

http://hg.python.org/cpython/file/04f714765c13/Modules/_io/fileio.c#l432

In PY2, os.fdopen sets the name to '<fdopen>'. See the related issue 13781. Here's the workaround in gzip.py:

    filename = getattr(fileobj, 'name', '')
    if not isinstance(filename, (str, bytes)):
        filename = ''
History
Date User Action Args
2014-03-24 06:15:32eryksunsetrecipients: + eryksun, antoine.pietri
2014-03-24 06:15:32eryksunsetmessageid: <1395641732.55.0.948201074366.issue21044@psf.upfronthosting.co.za>
2014-03-24 06:15:32eryksunlinkissue21044 messages
2014-03-24 06:15:32eryksuncreate