Minor fix

Thu, 09 Oct 2008 03:21:16 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 09 Oct 2008 03:21:16 +0500
changeset 88
023320150c65
parent 87
059ef1c30844
child 89
081e920dc74e

Minor fix

util/datamanager.lua file | annotate | diff | comparison | revisions
--- 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
 

mercurial