Message174978
>>> glob.glob('*.{sub,ac}')
['config.sub']
I'm surprised this broke, this is one of the behaviour I thought I had implemented in my original patch. :-/
> (and moreover, now it is impossible to glob for paths that contain braces)
I am absolutely sure this was working in my original submission, I had even added unit tests for it:
+ # test some edge cases where braces must not be expanded
+ eq(self.glob('c{}d'), [self.norm('c{}d')])
+ eq(self.glob('c{d{e,f}g'), map(self.norm, ['c{deg', 'c{dfg']))
+ eq(self.glob('c{d,e}{f}g'), map(self.norm, ['cd{f}g', 'ce{f}g']))
+ eq(self.glob('c{d,e}f}g'), map(self.norm, ['cdf}g', 'cef}g'])) |
|
Date |
User |
Action |
Args |
2012-11-06 15:12:52 | bochecha | set | recipients:
+ bochecha, fdrake, akuchling, ronaldoussoren, pitrou, eric.smith, tim.golden, kveretennicov, ezio.melotti, eric.araujo, r.david.murray, python-dev, serhiy.storchaka |
2012-11-06 15:12:52 | bochecha | set | messageid: <1352214772.79.0.304279972757.issue9584@psf.upfronthosting.co.za> |
2012-11-06 15:12:52 | bochecha | link | issue9584 messages |
2012-11-06 15:12:52 | bochecha | create | |
|