Properly use the JSONEncoder

regex-type
Raphaël Vinot 2017-11-01 11:09:08 -07:00
parent e0daf537d4
commit 7622be7956
2 changed files with 3 additions and 1 deletions

2
.coveragerc Normal file
View File

@ -0,0 +1,2 @@
[report]
show_missing = True

View File

@ -67,7 +67,7 @@ class WarningList():
return to_return
def to_json(self):
return json.dumps(self.to_dict(), cls=EncodeWarningList)
return json.dumps(self, cls=EncodeWarningList)
def _fast_search(self, value):
return value in self.list