mirror of https://github.com/tLDP/python-tldp
pep8/pyflakes corrections
This commit is contained in:
parent
875e2b2c23
commit
2550047d23
|
@ -86,6 +86,7 @@ class Inventory(object):
|
|||
logger.info("Identified %d broken documents: %r.", len(self.broken),
|
||||
self.broken.keys())
|
||||
|
||||
|
||||
def get_sources(sourcedirs):
|
||||
return SourceCollection(sourcedirs)
|
||||
|
||||
|
|
|
@ -44,8 +44,9 @@ class SourceCollection(collections.MutableMapping):
|
|||
continue
|
||||
for candy in candidates:
|
||||
if candy.stem in self:
|
||||
dup = self[candy.stem].filename
|
||||
logger.warning("Ignoring duplicate is %s", candy.filename)
|
||||
logger.warning("Existing dup-entry is %s", self[candy.stem].filename)
|
||||
logger.warning("Existing dup-entry is %s", dup)
|
||||
else:
|
||||
self[candy.stem] = candy
|
||||
logger.debug("Discovered %s documents total", len(self))
|
||||
|
|
|
@ -14,6 +14,7 @@ import logging
|
|||
|
||||
logdir = 'tldp-document-build-logs'
|
||||
|
||||
|
||||
def getLogger(**opts):
|
||||
level = opts.get('level', logging.INFO)
|
||||
logging.basicConfig(stream=sys.stderr, level=level)
|
||||
|
|
Loading…
Reference in New Issue