From b0b3bde4d9d1b87fd59ee36e11cd9aab713c5b0e Mon Sep 17 00:00:00 2001 From: Daniel Edgecumbe Date: Sun, 1 Oct 2017 06:24:11 +0100 Subject: [PATCH] [rpc] Import ujson if available, else use json --- rpc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpc.py b/rpc.py index 07b1f19..31200b2 100644 --- a/rpc.py +++ b/rpc.py @@ -7,7 +7,10 @@ import async_timeout import base64 import os -import ujson as json +try: + import ujson as json +except ImportError: + import json import config