summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-07-26 15:19:29 +0200
committerJose <jose@zeroc.com>2016-07-26 15:19:29 +0200
commit3838edd23e7d5676afa896acb6bd8b2ce1a5b5bd (patch)
tree86e7c749e8dea8169cfbdcbcbe10f4ea776a03ed /cpp/src/Slice/PythonUtil.cpp
parentString literal fixes for compativility with Python3 (diff)
downloadice-3838edd23e7d5676afa896acb6bd8b2ce1a5b5bd.tar.bz2
ice-3838edd23e7d5676afa896acb6bd8b2ce1a5b5bd.tar.xz
ice-3838edd23e7d5676afa896acb6bd8b2ce1a5b5bd.zip
Minor fix for Python string literals
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 997942012b2..262f104c2bb 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -2137,7 +2137,7 @@ Slice::Python::CodeVisitor::writeConstantValue(const TypePtr& type, const Syntax
_out << "\"" << sv2.str() << "\"";
- if(sv2.str() == sv3.str())
+ if(sv2.str() != sv3.str())
{
_out << " if _version_info_[0] < 3 else \"" << sv3.str() << "\"";
}