mirror of https://github.com/tLDP/python-tldp
pyflakes/pep8 fixes
This commit is contained in:
parent
ee88d451a8
commit
2094199462
|
@ -1,6 +1,6 @@
|
|||
#from .text import Text
|
||||
#from .rst import RestructuredText
|
||||
#from .markdown import Markdown
|
||||
# from .text import Text
|
||||
# from .rst import RestructuredText
|
||||
# from .markdown import Markdown
|
||||
from .linuxdoc import Linuxdoc
|
||||
from .docbooksgml import DocbookSGML
|
||||
from .docbook4xml import Docbook4XML
|
||||
|
|
|
@ -68,7 +68,8 @@ class Docbook4XML(BaseDoctype, SignatureChecker):
|
|||
if os.path.isdir(fullpath):
|
||||
source.append('"' + fullpath + '"')
|
||||
if not source:
|
||||
logger.debug("%s no images or resources to copy", self.source.stem)
|
||||
logger.debug("%s no images or resources to copy",
|
||||
self.source.stem)
|
||||
return True
|
||||
s = 'rsync --archive --verbose %s ./' % (' '.join(source))
|
||||
return self.shellscript(s)
|
||||
|
@ -149,7 +150,7 @@ class Docbook4XML(BaseDoctype, SignatureChecker):
|
|||
|
||||
@depends(graph, make_html)
|
||||
def make_name_html(self):
|
||||
'''rename xsltproc/docbook-XSL's index.html to LDP standard STEM.html'''
|
||||
'''rename DocBook XSL's index.html to LDP standard STEM.html'''
|
||||
s = 'mv -v --no-clobber -- "{output.name_indexhtml}" "{output.name_html}"'
|
||||
return self.shellscript(s)
|
||||
|
||||
|
|
|
@ -65,7 +65,8 @@ class DocbookSGML(BaseDoctype, SignatureChecker):
|
|||
if os.path.isdir(fullpath):
|
||||
source.append('"' + fullpath + '"')
|
||||
if not source:
|
||||
logger.debug("%s no images or resources to copy", self.source.stem)
|
||||
logger.debug("%s no images or resources to copy",
|
||||
self.source.stem)
|
||||
return True
|
||||
s = 'rsync --archive --verbose %s ./' % (' '.join(source))
|
||||
return self.shellscript(s)
|
||||
|
@ -88,7 +89,6 @@ class DocbookSGML(BaseDoctype, SignatureChecker):
|
|||
'''move a blank index.sgml file into the source tree'''
|
||||
if self.indexsgml:
|
||||
return True
|
||||
indexsgml = os.path.join(self.source.dirname, 'index.sgml')
|
||||
s = '''mv \\
|
||||
--no-clobber \\
|
||||
--verbose \\
|
||||
|
|
|
@ -41,7 +41,8 @@ class Linuxdoc(BaseDoctype, SignatureChecker):
|
|||
if os.path.isdir(fullpath):
|
||||
source.append('"' + fullpath + '"')
|
||||
if not source:
|
||||
logger.debug("%s no images or resources to copy", self.source.stem)
|
||||
logger.debug("%s no images or resources to copy",
|
||||
self.source.stem)
|
||||
return True
|
||||
s = 'rsync --archive --verbose %s ./' % (' '.join(source))
|
||||
return self.shellscript(s)
|
||||
|
|
Loading…
Reference in New Issue