diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-20 19:22:16 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-20 19:22:16 (GMT) |
commit | 5c2b6c294535a0dabe29b5ef311b4975eccb2357 (patch) | |
tree | c5ccfb4a40ef4194c38c5c7e0f00c861eda92c21 | |
parent | 48ced3ea8071b3141216482e2821e10250910947 (diff) | |
parent | 95d99a4c857d7d5208d8faf974b01354a798eba4 (diff) | |
download | Doxygen-5c2b6c294535a0dabe29b5ef311b4975eccb2357.zip Doxygen-5c2b6c294535a0dabe29b5ef311b4975eccb2357.tar.gz Doxygen-5c2b6c294535a0dabe29b5ef311b4975eccb2357.tar.bz2 |
Merge pull request #384 from JIghtuse/master
runtests: Simplify dictionary usage
-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): |