THRIFT-4644: Compiler cannot be compiled on macOS (#1601)
Client: compiler
diff --git a/compiler/cpp/src/thrift/generate/t_py_generator.cc b/compiler/cpp/src/thrift/generate/t_py_generator.cc
index 93ba3d0..9c82b6c 100644
--- a/compiler/cpp/src/thrift/generate/t_py_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_py_generator.cc
@@ -335,7 +335,7 @@
std::string module_;
protected:
- virtual std::set<std::string> lang_keywords() {
+ virtual std::set<std::string> lang_keywords() const {
std::string keywords[] = { "False", "None", "True", "and", "as", "assert", "break", "class",
"continue", "def", "del", "elif", "else", "except", "exec", "finally", "for", "from",
"global", "if", "import", "in", "is", "lambda", "nonlocal", "not", "or", "pass", "print",