From 3838edd23e7d5676afa896acb6bd8b2ce1a5b5bd Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 26 Jul 2016 15:19:29 +0200 Subject: Minor fix for Python string literals --- cpp/src/Slice/PythonUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') 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() << "\""; } -- cgit v1.2.3