Message154679
| 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: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 |
|