moved json_load to bufjson.py
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
from time import sleep
|
||||
|
||||
from .utils import json_load
|
||||
|
||||
|
||||
class BufferedJSON:
|
||||
|
||||
@ -33,3 +32,9 @@ class BufferedJSON:
|
||||
|
||||
|
||||
|
||||
def json_load(filename, *args, **kwargs):
|
||||
with open(filename, "r") as f:
|
||||
return json.load(f, *args, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
@ -1,10 +1,3 @@
|
||||
import json
|
||||
|
||||
|
||||
def json_load(filename, *args, **kwargs):
|
||||
with open(filename, "r") as f:
|
||||
return json.load(f, *args, **kwargs)
|
||||
|
||||
|
||||
def read_bit(bits, n):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user