Commit 5a8e4501 authored by Stefan Behnel's avatar Stefan Behnel

fix nice_identifier regex

parent 91c8955c
...@@ -289,7 +289,7 @@ class PyObjectConst(object): ...@@ -289,7 +289,7 @@ class PyObjectConst(object):
possible_unicode_identifier = re.compile(ur"(?![0-9])\w+$", re.U).match possible_unicode_identifier = re.compile(ur"(?![0-9])\w+$", re.U).match
possible_bytes_identifier = re.compile(r"(?![0-9])\w+$".encode('ASCII')).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): class StringConst(object):
"""Global info about a C string constant held by GlobalState. """Global info about a C string constant held by GlobalState.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment