mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Merge pull request #56 from Olegt0rr/patch-16
Update json.py to fix pyCharm warning
This commit is contained in:
commit
5412c3c120
1 changed files with 2 additions and 3 deletions
|
|
@ -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():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue