Commit 028ae1a5 authored by Jason R. Coombs's avatar Jason R. Coombs

Allow dict.update to do the iteration

parent af9943a4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment