Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profiles.py
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 15:24:34 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 15:24:34 -0400
commit96a48664e2d69d138f58967fdd75c605ad21478e (patch)
tree0429b25ba97ea4457b1a1f52b0875859509696b8 /archinstall/lib/profiles.py
parentf7642786c9e169245fae52d8754b9d68f2507cb7 (diff)
Fix mutable default arguments
https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments
Diffstat (limited to 'archinstall/lib/profiles.py')
-rw-r--r--archinstall/lib/profiles.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 62190cbf..871e6223 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -163,8 +163,10 @@ class Script:
class Profile(Script):
- def __init__(self, installer, path, args={}):
+ def __init__(self, installer, path, args=None):
super(Profile, self).__init__(path, installer)
+ if args is None:
+ args = {}
def __dump__(self, *args, **kwargs):
return {'path': self.path}