Skip to content

Commit

Permalink
Remove str method on JsonObj
Browse files Browse the repository at this point in the history
  • Loading branch information
apiad committed Jan 24, 2018
1 parent bfacbe0 commit 1a8cc00
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions jsonapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ def _parse(self, x):

raise TypeError("type %s is not supported" % type(x))

def __str__(self, **kw):
return json.dumps(self.dict(), **kw)

@staticmethod
def from_json(s):
return JsonObj(**json.loads(s))
Expand Down Expand Up @@ -99,7 +96,6 @@ def _query(self, obj, query):

raise TypeError("type %s is not supported" % type(x))


def __call__(self, query, encode=False, **kw):
if isinstance(query, str):
query = json.loads(query)
Expand Down

0 comments on commit 1a8cc00

Please sign in to comment.