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 <>
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/ /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.
Date User Action Args
2013-08-27 14:04:27vajraskysetrecipients: + vajrasky
2013-08-27 14:04:27vajraskysetmessageid: <>
2013-08-27 14:04:27vajraskylinkissue18853 messages
2013-08-27 14:04:27vajraskycreate