diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-01 05:47:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-01 05:47:56 +0000 |
commit | a99818b3584e26c5dacbb150ca6af2076c4cd66f (patch) | |
tree | 782bb480560c4c95cc5a0235b0dd042fb587db67 /lib | |
parent | 75b8e715e9888522c89f0b9136278e6398251c72 (diff) |
Kludge harder, but properly.
git-svn-id: file:///home/or/svnrepo/updater/trunk@17424 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib')
-rw-r--r-- | lib/thandy/util.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/thandy/util.py b/lib/thandy/util.py index 61478ac..2a76f54 100644 --- a/lib/thandy/util.py +++ b/lib/thandy/util.py @@ -52,16 +52,16 @@ def importJSON(): 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.") |