From: Stefan Behnel Date: Wed, 14 Oct 2009 09:48:27 +0000 (+0200) Subject: fix nice_identifier regex X-Git-Tag: 0.13.beta0~2^2~121^2~67 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a8e4501b7aee0e448b822ec1b62f19b927fdb04;p=cython.git fix nice_identifier regex --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index d864229d..00868d6c 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -289,7 +289,7 @@ class PyObjectConst(object): possible_unicode_identifier = re.compile(ur"(?![0-9])\w+$", re.U).match possible_bytes_identifier = re.compile(r"(?![0-9])\w+$".encode('ASCII')).match -nice_identifier = re.compile('^[a-zA-Z0-0_]+$').match +nice_identifier = re.compile('^[a-zA-Z0-9_]+$').match class StringConst(object): """Global info about a C string constant held by GlobalState.