Minor fix
authorWaqas Hussain <waqas20@gmail.com>
Wed, 8 Oct 2008 22:21:16 +0000 (03:21 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Wed, 8 Oct 2008 22:21:16 +0000 (03:21 +0500)
util/datamanager.lua

index 2f5be00258fe2ed03a026644bd719c0bff2915a6..1deb6b3d6c2578bc48c073086b81895ba7fc0abd 100644 (file)
@@ -5,6 +5,7 @@ local char = string.char;
 local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
 local log = log;
 local io_open = io.open;
+local tostring = tostring;
 
 module "datamanager"
 
@@ -30,7 +31,7 @@ local function basicSerialize (o)
   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