mirror of
https://github.com/django/django.git
synced 2025-10-18 06:18:18 +00:00
Removed unnecessary arguments in .get method calls
This commit is contained in:
parent
f61c4f490d
commit
4157c502a5
39 changed files with 78 additions and 79 deletions
|
@ -308,7 +308,7 @@ class ManifestFilesMixin(HashedFilesMixin):
|
|||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
version = stored.get('version', None)
|
||||
version = stored.get('version')
|
||||
if version == '1.0':
|
||||
return stored.get('paths', OrderedDict())
|
||||
raise ValueError("Couldn't load manifest '%s' (version %s)" %
|
||||
|
@ -341,7 +341,7 @@ class _MappingCache(object):
|
|||
self.cache.set(key, value)
|
||||
|
||||
def __getitem__(self, key):
|
||||
value = self.cache.get(key, None)
|
||||
value = self.cache.get(key)
|
||||
if value is None:
|
||||
raise KeyError("Couldn't find a file name '%s'" % key)
|
||||
return value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue