From 96ef12e46ca56cb28e7bd8c0337df187ba71f666 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Mon, 12 Dec 2016 09:46:34 +0100 Subject: Python build failures on OS X --- cpp/src/Slice/PythonUtil.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') 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& _moduleHistory; - const bool _python3; list _moduleStack; set _classHistory; }; @@ -317,7 +316,7 @@ Slice::Python::ModuleVisitor::visitModuleStart(const ModulePtr& p) // CodeVisitor implementation. // Slice::Python::CodeVisitor::CodeVisitor(Output& out, set& 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) { -- cgit v1.2.3