From 5a8e4501b7aee0e448b822ec1b62f19b927fdb04 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 14 Oct 2009 11:48:27 +0200 Subject: [PATCH] fix nice_identifier regex --- Cython/Compiler/Code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.26.2