Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk
diff options
context:
space:
mode:
authorHimadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com>2023-06-22 12:09:14 +0000
committerGitHub <noreply@github.com>2023-06-22 14:09:14 +0200
commit72661dbf9bfbd12e42425066f9d5ce7c887f40c7 (patch)
treec0061e3abe08dfdcb489effd5218276221ecbbf0 /archinstall/lib/disk
parent23f98082cc5bb2703f4c31d5c42c299af18598ea (diff)
Simplify object serialization before JSON encoding (#1871)
* fix: check for helper functions for unsafe encode before falling back to safe encoding * feat: merge _encode and _unsafe_encode into simple serialization function to avoid immediate json.loads after json.dumps * fix: use function instead of a serializing class without trying to serialize keys that are unhashable or unsupported * feat: lazily evaluate serialized value based on key validity * feat: use dictionary comprehension and predefined compatible types * fix: handle enum types immediately after dicts * fix: return stringified object as a default * doc: update function docstring for serialize_to_dict * fix: rename serialize_to_dict to jsonify as it serializes to other primitive types as well
Diffstat (limited to 'archinstall/lib/disk')
0 files changed, 0 insertions, 0 deletions