projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91c8955
)
fix nice_identifier regex
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 14 Oct 2009 09:48:27 +0000
(11:48 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 14 Oct 2009 09:48:27 +0000
(11:48 +0200)
Cython/Compiler/Code.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Code.py
b/Cython/Compiler/Code.py
index d864229d2993890827bb52b5396eea6e97ffa271..00868d6c6745f0b864114265f0e737624e7cf15c 100644
(file)
--- 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.