Remove unused None from dict.get()

Since the default value is None when can't get a key from a dict,
So there is no need to use dict.get('key', None).

Change-Id: Ia2024152e6f01ce6d46bae74095351477637c908
This commit is contained in:
sudhir_agarwal 2017-06-29 12:17:35 +05:30
parent 00638fa410
commit 9f8cd55df4
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class TestAPI(test_interface.TestInterface):
fake_memcache[key] = value
def get_mem(key):
return fake_memcache.get(key, None)
return fake_memcache.get(key)
utils.init_db(self.session, numTenants, numResources, end)
@ -141,7 +141,7 @@ class TestAPI(test_interface.TestInterface):
fake_memcache[key] = value
def get_mem(key):
return fake_memcache.get(key, None)
return fake_memcache.get(key)
utils.init_db(self.session, numTenants, numResources, end)