mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
The identify() description didn't match the code. Fixed.
This commit is contained in:
parent
36b5198381
commit
36d49a907f
@ -1177,7 +1177,7 @@ def identify(str):
|
||||
"""Turn any string into an identifier:
|
||||
- replace space by _
|
||||
- replace other illegal chars by _xx_ (hex code)
|
||||
- prepend _ if the result is a python keyword
|
||||
- append _ if the result is a python keyword
|
||||
"""
|
||||
if not str:
|
||||
return "empty_ae_name_"
|
||||
|
Loading…
Reference in New Issue
Block a user