summaryrefslogtreecommitdiff
path: root/libs/json_tools.py
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2016-09-25 20:28:16 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2016-09-25 20:28:16 +0300
commitd646c9a42273e98c85602f5618598125007bbfaa (patch)
treed6173d42320f0d4fe702581f34e5c1304eb12089 /libs/json_tools.py
parent41125eb195324d18d9c2c12aa12ecbf66dc5d495 (diff)
WIP: commit all files that were changed
Diffstat (limited to 'libs/json_tools.py')
-rw-r--r--libs/json_tools.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/json_tools.py b/libs/json_tools.py
index 5e78d23..9ce19b0 100644
--- a/libs/json_tools.py
+++ b/libs/json_tools.py
@@ -1,9 +1,9 @@
-import json
-
-
-class JsonSerializable(object):
- def __repr__(self):
- return str(self.to_json())
-
- def to_json(self):
- return json.dumps(self.__dict__, ensure_ascii=False)
+import json
+
+
+class JsonSerializable(object):
+ def __repr__(self):
+ return str(self.to_json())
+
+ def to_json(self):
+ return json.dumps(self.__dict__, ensure_ascii=False)