forked from github/pelican
Fixed _EXTENSIONS dictionary definition.
This commit is contained in:
parent
d4e632dfa8
commit
c8323af63d
1 changed files with 5 additions and 1 deletions
|
|
@ -144,7 +144,11 @@ class HtmlReader(Reader):
|
|||
return content, metadata
|
||||
|
||||
|
||||
_EXTENSIONS = dict((cls.extension, cls) for cls in Reader.__subclasses__())
|
||||
_EXTENSIONS = {}
|
||||
|
||||
for cls in Reader.__subclasses__():
|
||||
for ext in cls.extension:
|
||||
_EXTENSIONS[ext] = cls
|
||||
|
||||
|
||||
def read_file(filename, fmt=None, settings=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue