remove useless .keys() for key in dict expressions

This commit is contained in:
Simon 2012-03-14 09:38:36 +01:00
commit 4f95b9f05c
2 changed files with 3 additions and 4 deletions

View file

@ -145,7 +145,7 @@ def read_file(filename, fmt=None, settings=None):
if not fmt:
fmt = filename.split('.')[-1]
if fmt not in _EXTENSIONS.keys():
if fmt not in _EXTENSIONS:
raise TypeError('Pelican does not know how to parse %s' % filename)
reader = _EXTENSIONS[fmt](settings)