diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-30 11:15:46 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-30 11:15:46 -0400 |
| commit | 028ae1a595c08c581fff6ff52883d2719d8f8160 (patch) | |
| tree | ea354137327022c53814135e2f8dc9b94945b1d4 /setuptools/__init__.py | |
| parent | af9943a4906a808c8d7c2b5004ba48f32400f1d3 (diff) | |
| download | python-setuptools-git-028ae1a595c08c581fff6ff52883d2719d8f8160.tar.gz | |
Allow dict.update to do the iteration
Diffstat (limited to 'setuptools/__init__.py')
| -rw-r--r-- | setuptools/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py index 1f421da4..9e76ae11 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -132,8 +132,7 @@ class Command(_Command): def reinitialize_command(self, command, reinit_subcommands=0, **kw): cmd = _Command.reinitialize_command(self, command, reinit_subcommands) - for k,v in kw.items(): - setattr(cmd,k,v) # update command with keywords + vars(cmd).update(kw) return cmd distutils.core.Command = Command # we can't patch distutils.cmd, alas |
