Message245675
r'[^\W\d]\w*' doesn't match all valid Python identifiers. It would be more correct to write the check as:
root, ext = os.path.splitext(basename)
if not (ext == '.py' and root.isidentifier()):
# valid Python identifiers only
return None, False |
|
Date |
User |
Action |
Args |
2015-06-23 10:00:04 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, rbcollins, ezio.melotti, sih4sing5hong5 |
2015-06-23 10:00:04 | serhiy.storchaka | set | messageid: <1435053604.84.0.122550773488.issue24263@psf.upfronthosting.co.za> |
2015-06-23 10:00:04 | serhiy.storchaka | link | issue24263 messages |
2015-06-23 10:00:04 | serhiy.storchaka | create | |
|