synced print format to python's

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1315 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent e65a1296db
commit 1d4c9017f7

@ -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 += ", ";
}

Loading…
Cancel
Save