pep8/pyflakes fixes

This commit is contained in:
Martin A. Brown 2016-03-10 11:17:09 -08:00
parent 793a810b8f
commit f7505627a5
6 changed files with 10 additions and 8 deletions

View File

@ -14,6 +14,7 @@ logger = logging.getLogger(__name__)
DEFAULT_CONFIGFILE = '/etc/ldptool/ldptool.ini'
def collectconfiguration(tag, argv):
ap = DefaultFreeArgumentParser()

View File

@ -7,7 +7,7 @@ import logging
from tldp.utils import which
from tldp.utils import arg_isexecutable, isexecutable
from tldp.doctypes.common import BaseDoctype, depends
from tldp.doctypes.common import depends
from tldp.doctypes.docbook4xml import Docbook4XML
logger = logging.getLogger(__name__)

View File

@ -528,6 +528,7 @@ def handleArgs(config, args):
return "Fell through handleArgs(); programming error."
def run(argv):
# -- may want to see option parsing, so set --loglevel as
# soon as possible

View File

@ -198,8 +198,8 @@ class SourceDocument(object):
def detail(self, widths, verbose, file=sys.stdout):
'''produce a small tabular output about the document'''
template = ' '.join(('{s.status:{w.status}}',
'{s.doctype.formatname:{w.doctype}}',
'{s.stem:{w.stem}}'))
'{s.doctype.formatname:{w.doctype}}',
'{s.stem:{w.stem}}'))
outstr = template.format(s=self, w=widths)
print(outstr, file=file)
if verbose: