[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2014-10-17 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch, Vajrasky, but I chose a different fix, since the proposed one could leave the file open if the shlex constructor raised an error. Not particularly important, but as long as we are cleaning up the code we might as well make it as clean a

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2014-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c2b77d0680b by R David Murray in branch '3.4': #18853: Fix resource warning in shlex's __main__ section. https://hg.python.org/cpython/rev/4c2b77d0680b New changeset 8ed630f28753 by R David Murray in branch 'default': Merge: #18853: Fix resource wa

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2014-06-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2014-06-25 Thread Claudiu Popa
Claudiu Popa added the comment: It seems commit ready. -- nosy: +Claudiu.Popa stage: patch review -> commit review versions: +Python 3.5 ___ Python tracker ___ __

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2013-09-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2013-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think the warning should be silenced on all versions where it occurs. There is no real problem here, but there can be with multiple opens without close on non-refcounted interpreters. Patch looks good but I have not tried it. -- nosy: +terry.reedy st

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2013-08-30 Thread Madison May
Madison May added the comment: The patch LGTM as well. ResourceWarning was silenced after applying patch when tested on my machine. -- nosy: +madison.may ___ Python tracker ___

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2013-08-27 Thread Vajrasky Kok
New submission from Vajrasky Kok: The python is compiled with --with-pydebug flag. [sky@localhost cpython]$ cat /tmp/quote.txt manly "man" likes 'cute "cat"' [sky@localhost cpython]$ ./python Lib/shlex.py /tmp/quote.txt Token: 'manly' Token: '"man"' Token: 'likes' Token: '\'cute "cat"\'' sys:1