Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-06 09:53:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-06 09:53:01 +0400
commit906cd4d8a68c36abed99f98b35c725b27b32304b (patch)
treed72bc8a53e0c00e62a5f551f02f6a1cfcd6b650b /source/blender/makesrna/intern/rna_define.c
parentdf29e91a697fbc89dea9c38282f3283e2fee7cc5 (diff)
update python keywords (remove exec, print, add nonlocal)
Diffstat (limited to 'source/blender/makesrna/intern/rna_define.c')
-rw-r--r--source/blender/makesrna/intern/rna_define.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c
index 651b6fd9c16..e106f8236c9 100644
--- a/source/blender/makesrna/intern/rna_define.c
+++ b/source/blender/makesrna/intern/rna_define.c
@@ -376,16 +376,14 @@ static int rna_validate_identifier(const char *identifier, char *error, int prop
{
int a = 0;
- /* list from http://docs.python.org/reference/lexical_analysis.html#id5 */
+ /* list from http://docs.python.org/py3k/reference/lexical_analysis.html#keywords */
static const char *kwlist[] = {
+ /* "False", "None", "True", */
"and", "as", "assert", "break",
- "class", "continue", "def", "del",
- "elif", "else", "except", "exec",
- "finally", "for", "from", "global",
- "if", "import", "in", "is",
- "lambda", "not", "or", "pass",
- "print", "raise", "return", "try",
- "while", "with", "yield", NULL
+ "class", "continue", "def", "del", "elif", "else", "except",
+ "finally", "for", "from", "global", "if", "import", "in",
+ "is", "lambda", "nonlocal", "not", "or", "pass", "raise",
+ "return", "try", "while", "with", "yield", NULL
};