From 1d4c9017f7c2eeb59a5c93f7431bdb3cac015dac Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Fri, 13 Mar 2009 17:26:28 +0000 Subject: [PATCH] synced print format to python's git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1315 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmArg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/AmArg.cpp b/core/AmArg.cpp index dd10a0bb..4a0ae3aa 100644 --- a/core/AmArg.cpp +++ b/core/AmArg.cpp @@ -366,7 +366,7 @@ string AmArg::print(const AmArg &a) { case Double: return int2str((int)a.asDouble()); //TODO: FIXME case CStr: - return '"' + string(a.asCStr()) + '"'; + return "'" + string(a.asCStr()) + "'"; case Array: s = "["; for (size_t i = 0; i < a.size(); i ++) @@ -379,7 +379,7 @@ string AmArg::print(const AmArg &a) { s = "{"; for (AmArg::ValueStruct::const_iterator it = a.asStruct()->begin(); it != a.asStruct()->end(); it ++) { - s += it->first + ":"; + s += "'"+it->first + "': "; s += print(it->second); s += ", "; }