Changeset

88:023320150c65

Minor fix
author Waqas Hussain <waqas20@gmail.com>
date Thu, 09 Oct 2008 03:21:16 +0500
parents 87:059ef1c30844
children 89:081e920dc74e
files util/datamanager.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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