From 028ae1a595c08c581fff6ff52883d2719d8f8160 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 30 Aug 2015 11:15:46 -0400 Subject: Allow dict.update to do the iteration --- setuptools/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setuptools/__init__.py') 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 -- cgit v1.2.1