pep8/pyflakes

This commit is contained in:
Martin A. Brown 2016-03-01 22:47:15 -08:00
parent 6e11db3957
commit 78e67c0e6c
2 changed files with 3 additions and 3 deletions

View File

@ -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'),

View File

@ -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