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 ezio.melotti
Recipients Ronny.Pfannschmidt, eric.araujo, ezio.melotti, pitrou
Date 2012-03-01.08:01:15
SpamBayes Score 8.820366e-06
Marked as misclassified No
Message-id <1330588878.75.0.0652629475009.issue14161@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch seems to do the trick (not sure if it's the best way to fix the issue though):
>>> open('woo\raa')
<open file 'woo\raa', mode 'r' at 0xb77c2aa8>
>>> open('woo\ra\'a', 'w')
<open file "woo\ra'a", mode 'w' at 0xb77c2b88>
>>> open('woo\ra\'a"', 'w')
<open file 'woo\ra\'a"', mode 'w' at 0xb77c2b18>
>>> 

It's more or less equivalent to:
- return "<open file '%s', mode '%s' at %p>" % (fname, mode, addr)
+ return "<open file %s, mode '%s' at %p>" % (repr(fname), mode, addr)
History
Date User Action Args
2012-03-01 08:01:18ezio.melottisetrecipients: + ezio.melotti, pitrou, eric.araujo, Ronny.Pfannschmidt
2012-03-01 08:01:18ezio.melottisetmessageid: <1330588878.75.0.0652629475009.issue14161@psf.upfronthosting.co.za>
2012-03-01 08:01:16ezio.melottilinkissue14161 messages
2012-03-01 08:01:16ezio.melotticreate