Skip to content

Commit

Permalink
runtests: Simplify dictionary usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JIghtuse committed Aug 20, 2015
1 parent 48ced3e commit 95d99a4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions testing/runtests.py
Expand Up @@ -41,10 +41,7 @@ def get_config(self):
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):
Expand Down

0 comments on commit 95d99a4

Please sign in to comment.