Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/keyboard.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-08-06 16:31:00 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-08-06 16:31:00 (GMT)
commit041f65ae6dcdc22d235c0ef7fe05b53334a4d1ff (patch)
tree1a73e0c0c697e36d0420f309718bd6c6615f0460 /keyboard.py
parent535b9dd9c33b0f6daf76042bf183aa94d8afc053 (diff)
Adopt to json changes in python-2.6 #711
Diffstat (limited to 'keyboard.py')
-rw-r--r--keyboard.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboard.py b/keyboard.py
index 34a9da2..9a04d9d 100644
--- a/keyboard.py
+++ b/keyboard.py
@@ -22,7 +22,7 @@ import gtk
import rsvg
import os, glob, re
import pango
-import simplejson
+import json
# Tweaking variables.
HAND_YOFFSET = -15
@@ -321,10 +321,10 @@ class KeyboardData:
pass
def load_letter_map(self, filename):
- self.letter_map = simplejson.loads(open(filename, 'r').read())
+ self.letter_map = json.loads(open(filename, 'r').read())
def save_letter_map(self, filename):
- text = simplejson.dumps(self.letter_map, ensure_ascii=False, sort_keys=True, indent=4)
+ text = json.dumps(self.letter_map, ensure_ascii=False, sort_keys=True, indent=4)
f = open(filename, 'w')
f.write(text)
f.close()