Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/general.py
diff options
context:
space:
mode:
authorSteven Lee <stevenlee123@protonmail.com>2021-11-19 14:09:47 +1100
committerSteven Lee <stevenlee123@protonmail.com>2021-11-19 14:09:47 +1100
commit91d030a09c26f56ece0de72e3536ad31d48595ec (patch)
tree7cb45b216096ff972658216de96d9927469fa80a /archinstall/lib/general.py
parent5ec690da939ff5b2efb3ba2ffe177cb035c25ee6 (diff)
source code improvement
Diffstat (limited to 'archinstall/lib/general.py')
-rw-r--r--archinstall/lib/general.py2
1 files changed, 2 insertions, 0 deletions
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 !