mirror of https://github.com/tLDP/python-tldp
revert to name knowndoctypes (classes only)
no need to itemize knowndoctypemodules after moving the config_fragment functions to the staticmethod argparse on each class
This commit is contained in:
parent
7903d5f497
commit
81375b84c5
|
@ -70,7 +70,7 @@ def guess(thing):
|
|||
logger.debug("%s no file extension, skipping %s.", stem, ext)
|
||||
return None
|
||||
|
||||
possible = [t for t in knowndoctypeclasses if ext in t.extensions]
|
||||
possible = [t for t in knowndoctypes if ext in t.extensions]
|
||||
logger.debug("Possible: %r", possible)
|
||||
if not possible:
|
||||
logger.debug("%s unknown extension %s.", stem, ext)
|
||||
|
@ -114,10 +114,9 @@ def guess(thing):
|
|||
return doctype
|
||||
|
||||
|
||||
knowndoctypemodules = getDoctypeModules()
|
||||
knowndoctypeclasses = getDoctypeClasses()
|
||||
knowndoctypes = getDoctypeClasses()
|
||||
knownextensions = set()
|
||||
for x in knowndoctypeclasses:
|
||||
for x in knowndoctypes:
|
||||
knownextensions.update(x.extensions)
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue