mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
remove useless .keys() for key in dict expressions
This commit is contained in:
parent
71a5ba3283
commit
4f95b9f05c
2 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue