changeset 88 | 023320150c65 |
parent 87 | 059ef1c30844 |
child 117 | 8e5c5e6a3240 |
--- a/util/datamanager.lua Thu Oct 09 03:01:47 2008 +0500 +++ b/util/datamanager.lua Thu Oct 09 03:21:16 2008 +0500 @@ -5,6 +5,7 @@ local loadfile, setfenv, pcall = loadfile, setfenv, pcall; local log = log; local io_open = io.open; +local tostring = tostring; module "datamanager" @@ -30,7 +31,7 @@ if type(o) == "number" or type(o) == "boolean" then return tostring(o) else -- assume it is a string - return string.format("%q", tostring(o)) + return format("%q", tostring(o)) end end