New submission from Serhiy Storchaka:

When porting gzip module from Python 2 to Python 3, binary files 
sys.std(in|out) was replaced by sys.std(in|out).buffer in gzip module internal 
testing code (when gzip used as executable). But in one place the replacement 
was skipped. As the result the condition now always true and standard files are 
closed after use.

Here is a patch that fixes this error.

----------
components: Library (Lib)
files: gzip_main_close.patch
keywords: patch
messages: 169296
nosy: pitrou, storchaka
priority: low
severity: normal
status: open
title: Closing of sys.std* files in gzip test.
type: resource usage
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file27035/gzip_main_close.patch

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

Reply via email to