This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients vajrasky
Date 2013-08-27.14:04:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377612267.45.0.680080135941.issue18853@psf.upfronthosting.co.za>
In-reply-to
Content
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: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/quote.txt' mode='r' encoding='UTF-8'>

Attached the patch to close the file when running the demo.
History
Date User Action Args
2013-08-27 14:04:27vajraskysetrecipients: + vajrasky
2013-08-27 14:04:27vajraskysetmessageid: <1377612267.45.0.680080135941.issue18853@psf.upfronthosting.co.za>
2013-08-27 14:04:27vajraskylinkissue18853 messages
2013-08-27 14:04:27vajraskycreate