summaryrefslogtreecommitdiff
path: root/setuptools/__init__.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-08-30 11:12:58 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-08-30 11:12:58 -0400
commit4e854d1e6ffd5ee1adffd8750589b0a16517d67c (patch)
tree97c9039bbe657373a37c3a9102d7307e795b294f /setuptools/__init__.py
parente5c83ccacb4e61147cb75f4edbe15d68b304b1c5 (diff)
downloadpython-setuptools-git-4e854d1e6ffd5ee1adffd8750589b0a16517d67c.tar.gz
Allow dict.update to do the iteration
Diffstat (limited to 'setuptools/__init__.py')
-rw-r--r--setuptools/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py
index 2c492446..f1798328 100644
--- a/setuptools/__init__.py
+++ b/setuptools/__init__.py
@@ -124,9 +124,8 @@ class Command(_Command):
def __init__(self, dist, **kw):
# Add support for keyword arguments
- _Command.__init__(self,dist)
- for k,v in kw.items():
- setattr(self,k,v)
+ _Command.__init__(self, dist)
+ vars(self).update(kw)
def reinitialize_command(self, command, reinit_subcommands=0, **kw):
cmd = _Command.reinitialize_command(self, command, reinit_subcommands)