moved json_load to bufjson.py

This commit is contained in:
2024-08-07 16:41:33 +02:00
parent 018fa6cf4b
commit bff86898e9
2 changed files with 7 additions and 9 deletions

View File

@ -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)

View File

@ -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):
"""