summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2013-01-24 09:47:37 -0800
committerMark Spruiell <mes@zeroc.com>2013-01-24 09:47:37 -0800
commit7ee4fbdab347c1e5db15febcc3c19e9b40525508 (patch)
tree0b1f996808911cf9b155e655456c57025c6736ea /cpp/src/Slice/PythonUtil.cpp
parentminor fix to TestUil.py (diff)
downloadice-7ee4fbdab347c1e5db15febcc3c19e9b40525508.tar.bz2
ice-7ee4fbdab347c1e5db15febcc3c19e9b40525508.tar.xz
ice-7ee4fbdab347c1e5db15febcc3c19e9b40525508.zip
ICE-5203 - add self to Python keywords
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 9ab5d9acffd..911094a909b 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -185,7 +185,7 @@ lookupKwd(const string& name)
{
"None", "and", "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", "yield"
+ "print", "raise", "return", "self", "try", "while", "yield"
};
bool found = binary_search(&keywordList[0],
&keywordList[sizeof(keywordList) / sizeof(*keywordList)],