mirror of https://github.com/tLDP/python-tldp
pep8/pyflakes
This commit is contained in:
parent
6e11db3957
commit
78e67c0e6c
|
@ -41,12 +41,12 @@ ex_docbook5xml = SimpleNamespace(
|
||||||
# type=tldp.doctypes.rst.RestructuredText,
|
# type=tldp.doctypes.rst.RestructuredText,
|
||||||
# filename=opj(sampledocs, 'restructuredtext-simple.rst'),
|
# filename=opj(sampledocs, 'restructuredtext-simple.rst'),
|
||||||
# )
|
# )
|
||||||
#
|
#
|
||||||
# ex_text = SimpleNamespace(
|
# ex_text = SimpleNamespace(
|
||||||
# type=tldp.doctypes.text.Text,
|
# type=tldp.doctypes.text.Text,
|
||||||
# filename=opj(sampledocs, 'text-simple.txt'),
|
# filename=opj(sampledocs, 'text-simple.txt'),
|
||||||
# )
|
# )
|
||||||
#
|
#
|
||||||
# ex_markdown = SimpleNamespace(
|
# ex_markdown = SimpleNamespace(
|
||||||
# type=tldp.doctypes.markdown.Markdown,
|
# type=tldp.doctypes.markdown.Markdown,
|
||||||
# filename=opj(sampledocs, 'markdown-simple.md'),
|
# filename=opj(sampledocs, 'markdown-simple.md'),
|
||||||
|
|
|
@ -66,7 +66,7 @@ class TestToolsFilesystem(unittest.TestCase):
|
||||||
if os.path.isfile(filename):
|
if os.path.isfile(filename):
|
||||||
shutil.copy(filename, newname)
|
shutil.copy(filename, newname)
|
||||||
else:
|
else:
|
||||||
with open(newname, 'w') as f:
|
with open(newname, 'w'):
|
||||||
pass
|
pass
|
||||||
relname = os.path.relpath(newname, self.tempdir)
|
relname = os.path.relpath(newname, self.tempdir)
|
||||||
return relname, newname
|
return relname, newname
|
||||||
|
|
Loading…
Reference in New Issue