Message152495
fnmatch to support escape characters:
like that:
>>> name = "Document[Ver.2].doc"
>>> pattern = "*\[Ver.2\]*"
>>> fnmatch.fnmatch(name, pattern)
True
that's also fix glob module:
>>> pattern = "ipconfig /\?"
>>> glob.glob(pattern)
"ipconfig /?" |
|
Date |
User |
Action |
Args |
2012-02-03 06:50:23 | fruch | set | recipients:
+ fruch |
2012-02-03 06:50:23 | fruch | set | messageid: <1328251823.76.0.3651219427.issue13929@psf.upfronthosting.co.za> |
2012-02-03 06:50:23 | fruch | link | issue13929 messages |
2012-02-03 06:50:22 | fruch | create | |
|