index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2023-07-30 00:28:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-30 00:28:21 +0200 |
commit | a43344c5ae2249ddb70e535637915b30563c5038 (patch) | |
tree | 6183d5820cd09d32e7b24cb7a9eb7a099d4616c6 /archinstall/__init__.py | |
parent | 29b528072551f32a0075b3f5c9d91d5ded019534 (diff) |
-rw-r--r-- | archinstall/__init__.py | 4 |
diff --git a/archinstall/__init__.py b/archinstall/__init__.py index cfaecd16..56f0b278 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -145,12 +145,12 @@ def cleanup_empty_args(args: Union[Namespace, Dict]) -> Dict: Takes arguments (dictionary or argparse Namespace) and removes any None values. This ensures clean mergers during dict.update(args) """ - if type(args) == Namespace: + if type(args) is Namespace: args = vars(args) clean_args = {} for key, val in args.items(): - if type(val) == dict: + if isinstance(val, dict): val = cleanup_empty_args(val) if val is not None: |