[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r17424: {updater} Kludge harder, but properly. (updater/trunk/lib/thandy)



Author: nickm
Date: 2008-12-01 00:47:56 -0500 (Mon, 01 Dec 2008)
New Revision: 17424

Modified:
   updater/trunk/lib/thandy/util.py
Log:
Kludge harder, but properly.

Modified: updater/trunk/lib/thandy/util.py
===================================================================
--- updater/trunk/lib/thandy/util.py	2008-12-01 05:45:10 UTC (rev 17423)
+++ updater/trunk/lib/thandy/util.py	2008-12-01 05:47:56 UTC (rev 17424)
@@ -52,16 +52,16 @@
         else:
             if escape_dct.has_key("/"):
                 escape_dct["/"] = "/"
-                save_dumps = simplejson.dumps
-                save_dump = simplejson.dump
+                save_dumps = mod.dumps
+                save_dump = mod.dump
                 def dumps(*k, **v):
                     v['ensure_ascii']=False
                     return save_dumps(*k,**v)
                 def dump(*k,**v):
                     v['ensure_ascii']=False
                     return save_dump(*k,**v)
-                simplejson.dump = dump
-                simplejson.dumps = dumps
+                mod.dump = dump
+                mod.dumps = dumps
                 logging.warn("Your operating system has an old broken "
                              "simplejson module.  I tried to fix it for you.")