Merge pull request #56 from Olegt0rr/patch-16

Update json.py to fix pyCharm warning
This commit is contained in:
Alex Root Junior 2018-07-26 20:59:04 +03:00 committed by GitHub
commit 5412c3c120
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,11 +3,10 @@ import json
try: try:
import ujson import ujson
_UJSON_IS_AVAILABLE = True
except ImportError: except ImportError:
_UJSON_IS_AVAILABLE = False ujson = None
_use_ujson = _UJSON_IS_AVAILABLE _use_ujson = True if ujson else False
def disable_ujson(): def disable_ujson():