mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Patches by Jens B. Jorgensen with small mods by me:
- Converted the templates to use ANSI C prototypes (finally!) - Use re in stead of deprecated regex
This commit is contained in:
parent
b9526515b7
commit
9aaee933da
17 changed files with 60 additions and 146 deletions
|
@ -30,8 +30,8 @@ import string
|
|||
|
||||
oops = 'oops'
|
||||
|
||||
IDENTSTARTCHARS = string.ascii_letters + '_'
|
||||
IDENTCHARS = string.ascii_letters + string.digits + '_'
|
||||
IDENTSTARTCHARS = string.letters + '_'
|
||||
IDENTCHARS = string.letters + string.digits + '_'
|
||||
|
||||
# Check that string is a legal C identifier
|
||||
def checkid(str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue