diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2016-09-25 20:28:40 +0300 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2016-09-25 20:28:40 +0300 |
commit | fa107061d3d8f3decf12120ba2f4ebed1e78218a (patch) | |
tree | b07d2a56f0b9c0d606336bf51f4e1126bee02206 /libs | |
parent | 6503c222d1c2145f32d9678157a9659b70a12c83 (diff) |
Use UNIX line endings
Diffstat (limited to 'libs')
-rw-r--r-- | libs/json_tools.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/json_tools.py b/libs/json_tools.py index 9ce19b0..5e78d23 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) |