Eric V. Smith added the comment:

Good point on contextlib.closing not being needed. I usually use this pattern 
on things that aren't files!

On second thought, the with statement will close sys.stdin, so this isn't a 
valid pattern here. Sorry for the noise.

----------

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

Reply via email to