Message154679
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) |
|
Date |
User |
Action |
Args |
2012-03-01 08:01:18 | ezio.melotti | set | recipients:
+ ezio.melotti, pitrou, eric.araujo, Ronny.Pfannschmidt |
2012-03-01 08:01:18 | ezio.melotti | set | messageid: <1330588878.75.0.0652629475009.issue14161@psf.upfronthosting.co.za> |
2012-03-01 08:01:16 | ezio.melotti | link | issue14161 messages |
2012-03-01 08:01:16 | ezio.melotti | create | |
|