From 91d030a09c26f56ece0de72e3536ad31d48595ec Mon Sep 17 00:00:00 2001 From: Steven Lee Date: Fri, 19 Nov 2021 14:09:47 +1100 Subject: source code improvement --- archinstall/lib/general.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archinstall/lib/general.py') diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index ee088d4f..a057af5a 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -76,6 +76,7 @@ def json_dumps(*args, **kwargs): return json.dumps(*args, **{**kwargs, 'cls': JSON}) class JsonEncoder: + @staticmethod def _encode(obj): """ This JSON encoder function will try it's best to convert @@ -112,6 +113,7 @@ class JsonEncoder: else: return obj + @staticmethod def _unsafe_encode(obj): """ Same as _encode() but it keeps dictionary keys starting with ! -- cgit v1.2.3-70-g09d2