diff options
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r-- | Lib/sre_parse.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index 0320885c67..1aba45645a 100644 --- a/Lib/sre_parse.py +++ b/Lib/sre_parse.py @@ -221,11 +221,11 @@ def isdigit(char): def isname(name): # check that group name is a valid string if not isident(name[0]): - return 0 + return False for char in name: if not isident(char) and not isdigit(char): - return 0 - return 1 + return False + return True def _group(escape, groups): # check if the escape string represents a valid group |