From: Ralf Jung Date: Sun, 15 Sep 2013 14:10:40 +0000 (+0200) Subject: avoid needlessly creating a list X-Git-Url: https://git.ralfj.de/mass-build.git/commitdiff_plain/acc616e24b4d936037076f3915d1bc35cb197f2e avoid needlessly creating a list --- diff --git a/mass_build.py b/mass_build.py index 93ae5a3..e9e3725 100755 --- a/mass_build.py +++ b/mass_build.py @@ -91,7 +91,7 @@ workProjects = [] # projects we work on # copy all items which don't exist below, except for those in the exclude list def inherit(subConfig, superConfig, exclude = ('name', 'projects')): - for name in list(superConfig.keys()): + for name in superConfig.keys(): if (not name in subConfig) and (not name in exclude): subConfig[name] = superConfig[name]