1
0
Fork 0
forked from github/pelican

Fixed _EXTENSIONS dictionary definition.

This commit is contained in:
Matt Bowcock 2012-04-10 00:40:05 -04:00
commit c8323af63d

View file

@ -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):