mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 20:12:43 +00:00
build test
This commit is contained in:
18
venv/lib/python3.7/site-packages/itsdangerous/_json.py
Normal file
18
venv/lib/python3.7/site-packages/itsdangerous/_json.py
Normal file
@@ -0,0 +1,18 @@
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
|
||||
class _CompactJSON(object):
|
||||
"""Wrapper around json module that strips whitespace."""
|
||||
|
||||
@staticmethod
|
||||
def loads(payload):
|
||||
return json.loads(payload)
|
||||
|
||||
@staticmethod
|
||||
def dumps(obj, **kwargs):
|
||||
kwargs.setdefault("ensure_ascii", False)
|
||||
kwargs.setdefault("separators", (",", ":"))
|
||||
return json.dumps(obj, **kwargs)
|
Reference in New Issue
Block a user