summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-12-12 09:46:34 +0100
committerBenoit Foucher <benoit@zeroc.com>2016-12-12 09:46:34 +0100
commit96ef12e46ca56cb28e7bd8c0337df187ba71f666 (patch)
treed90c54a1c64630bef6353873ef56cca770e061cb /cpp/src/Slice/PythonUtil.cpp
parentUpdate Nuget package imports to use latest packages (diff)
downloadice-96ef12e46ca56cb28e7bd8c0337df187ba71f666.tar.bz2
ice-96ef12e46ca56cb28e7bd8c0337df187ba71f666.tar.xz
ice-96ef12e46ca56cb28e7bd8c0337df187ba71f666.zip
Python build failures on OS X
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index c8759a6124c..dbf8d2e95f3 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -187,7 +187,6 @@ private:
Output& _out;
set<string>& _moduleHistory;
- const bool _python3;
list<string> _moduleStack;
set<string> _classHistory;
};
@@ -317,7 +316,7 @@ Slice::Python::ModuleVisitor::visitModuleStart(const ModulePtr& p)
// CodeVisitor implementation.
//
Slice::Python::CodeVisitor::CodeVisitor(Output& out, set<string>& moduleHistory, bool python3) :
- _out(out), _moduleHistory(moduleHistory), _python3(python3)
+ _out(out), _moduleHistory(moduleHistory)
{
}
@@ -1857,7 +1856,7 @@ Slice::Python::CodeVisitor::writeConstantValue(const TypePtr& type, const Syntax
{
string sv2 = toStringLiteral(value, "\a\b\f\n\r\t\v", "", Octal, 0);
string sv3 = toStringLiteral(value, "\a\b\f\n\r\t\v", "", UCN, 0);
-
+
_out << "\"" << sv2<< "\"";
if(sv2 != sv3)
{