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:
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 !