From bdd6e705ae7021c23cd7610e71bdb7accab1938b Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 24 Jan 2002 12:36:51 +0000 Subject: [PATCH] "yield" is also a keyword. Spotted by Neal Norwitz. --- Mac/scripts/gensuitemodule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py index db440cb9a7c..04cd7c9c58a 100644 --- a/Mac/scripts/gensuitemodule.py +++ b/Mac/scripts/gensuitemodule.py @@ -820,7 +820,7 @@ def compiledataflags(flags): illegal_ids = ["and", "elif", "global", "or", "assert", "else", "if", "pass", "break", "except", "import", "print", "class", "exec", "in", "raise", "continue", "finally", "is", "return", "def", "for", "lambda", "try", - "del", "from", "not", "while"] + "del", "from", "not", "while", "yield"] def identify(str): """Turn any string into an identifier: