Commit 0c24daa9 authored by Jack Jansen's avatar Jack Jansen

"yield" is also a keyword. Spotted by Neal Norwitz.

parent 18d6724d
...@@ -820,7 +820,7 @@ def compiledataflags(flags): ...@@ -820,7 +820,7 @@ def compiledataflags(flags):
illegal_ids = ["and", "elif", "global", "or", "assert", "else", "if", "pass", illegal_ids = ["and", "elif", "global", "or", "assert", "else", "if", "pass",
"break", "except", "import", "print", "class", "exec", "in", "raise", "break", "except", "import", "print", "class", "exec", "in", "raise",
"continue", "finally", "is", "return", "def", "for", "lambda", "try", "continue", "finally", "is", "return", "def", "for", "lambda", "try",
"del", "from", "not", "while"] "del", "from", "not", "while", "yield"]
def identify(str): def identify(str):
"""Turn any string into an identifier: """Turn any string into an identifier:
......
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