From ea611e9fc9f8aef08a187b5be4071ea68ccd5339 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Tue, 25 Jul 2017 04:35:17 +0300 Subject: [PATCH] Memorize if ujson is loaded. --- aiogram/utils/json.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiogram/utils/json.py b/aiogram/utils/json.py index bc127402..6ae6b6c2 100644 --- a/aiogram/utils/json.py +++ b/aiogram/utils/json.py @@ -1,7 +1,9 @@ try: import ujson as json + IS_UJSON = True except ImportError: import json + IS_UJSON = False def dumps(data):