dmiller
b254234118
Replace key existence tests with dict.get()
...
Replaced instances of this pattern:
if 'key' in somedict:
var = somedict['key']
else:
var = ""
...with this much simpler pattern:
var = somedict.get('key', "")
Some variations, like returning None if the key is not found were also
replaced.
2014-01-08 20:28:12 +00:00
..
2014-01-08 19:50:22 +00:00
2013-09-11 19:06:20 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 20:28:12 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 20:28:12 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00
2014-01-08 19:50:22 +00:00