This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, rbcollins, serhiy.storchaka, sih4sing5hong5, vstinner
Date 2015-06-23.10:00:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435053604.84.0.122550773488.issue24263@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-06-23 10:00:04serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, rbcollins, ezio.melotti, sih4sing5hong5
2015-06-23 10:00:04serhiy.storchakasetmessageid: <1435053604.84.0.122550773488.issue24263@psf.upfronthosting.co.za>
2015-06-23 10:00:04serhiy.storchakalinkissue24263 messages
2015-06-23 10:00:04serhiy.storchakacreate