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 martin.panter
Recipients Kunal Grover, anish.shah, demian.brecht, jaraco, martin.panter, serhiy.storchaka
Date 2016-02-07.05:12:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454821977.02.0.621526284535.issue26302@psf.upfronthosting.co.za>
In-reply-to
Content
Another option might be to do away with the regular expression (personally I like to avoid REs and code generation where practical):

def _is_legal_key(key):
    return key and set(_LegalChars).issuperset(key)
History
Date User Action Args
2016-02-07 05:12:57martin.pantersetrecipients: + martin.panter, jaraco, serhiy.storchaka, demian.brecht, anish.shah, Kunal Grover
2016-02-07 05:12:57martin.pantersetmessageid: <1454821977.02.0.621526284535.issue26302@psf.upfronthosting.co.za>
2016-02-07 05:12:57martin.panterlinkissue26302 messages
2016-02-07 05:12:56martin.pantercreate