Skip to content

Commit

Permalink
- fix 'separators' kwarg not supported by ujson
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Gonzalez committed Oct 24, 2017
1 parent f78b5e1 commit da1785d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hug/json_module.py
Expand Up @@ -13,6 +13,7 @@ class dumps_proxy:

def __call__(self, *args, **kwargs):
kwargs.pop('default', None)
kwargs.pop('separators', None)
kwargs.update(escape_forward_slashes=False)
return self._dumps(*args, **kwargs)
json.dumps = dumps_proxy()
Expand Down

0 comments on commit da1785d

Please sign in to comment.