diff options
author | Boris Egorov <egorov@linux.com> | 2015-08-20 16:06:21 (GMT) |
---|---|---|
committer | Boris Egorov <egorov@linux.com> | 2015-08-20 16:07:20 (GMT) |
commit | 95d99a4c857d7d5208d8faf974b01354a798eba4 (patch) | |
tree | c5ccfb4a40ef4194c38c5c7e0f00c861eda92c21 /testing | |
parent | 48ced3ea8071b3141216482e2821e10250910947 (diff) | |
download | Doxygen-95d99a4c857d7d5208d8faf974b01354a798eba4.zip Doxygen-95d99a4c857d7d5208d8faf974b01354a798eba4.tar.gz Doxygen-95d99a4c857d7d5208d8faf974b01354a798eba4.tar.bz2 |
runtests: Simplify dictionary usage
Diffstat (limited to 'testing')
-rw-r--r-- | testing/runtests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/testing/runtests.py b/testing/runtests.py index 149d457..83647c6 100644 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -41,10 +41,7 @@ class Tester: if (key=='config'): value = value.replace('$INPUTDIR',self.args.inputdir) #print('key=%s value=%s' % (key,value)) - if key in config: - config[key].append(value) - else: - config[key] = [value] + config.setdefault(key, []).append(value) return config def prepare_test(self): |