Additional reserved python keywords (#7956)

This commit is contained in:
gs
2018-04-03 18:15:15 +02:00
committed by William Cheng
parent 74fa9418d8
commit 240aad8686
2 changed files with 4 additions and 2 deletions
@@ -78,7 +78,8 @@ public class FlaskConnexionCodegen extends DefaultCodegen implements CodegenConf
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
"assert", "else", "if", "pass", "yield", "break", "except", "import",
"print", "class", "exec", "in", "raise", "continue", "finally", "is",
"return", "def", "for", "lambda", "try", "self", "None", "True", "False", "nonlocal"));
"return", "def", "for", "lambda", "try", "self", "None", "True", "False", "nonlocal",
"float", "int", "str", "date", "datetime"));
// set the output folder here
outputFolder = "generated-code/connexion";
@@ -107,7 +107,8 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
"assert", "else", "if", "pass", "yield", "break", "except", "import",
"print", "class", "exec", "in", "raise", "continue", "finally", "is",
"return", "def", "for", "lambda", "try", "self", "nonlocal", "None", "True", "False"));
"return", "def", "for", "lambda", "try", "self", "nonlocal", "None", "True", "nonlocal",
"float", "int", "str", "date", "datetime"));
regexModifiers = new HashMap<Character, String>();
regexModifiers.put('i', "IGNORECASE");