mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +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:
|
||||
import ujson
|
||||
|
||||
_UJSON_IS_AVAILABLE = True
|
||||
except ImportError:
|
||||
_UJSON_IS_AVAILABLE = False
|
||||
ujson = None
|
||||
|
||||
_use_ujson = _UJSON_IS_AVAILABLE
|
||||
_use_ujson = True if ujson else False
|
||||
|
||||
|
||||
def disable_ujson():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue