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,
|
||||
# filename=opj(sampledocs, 'restructuredtext-simple.rst'),
|
||||
# )
|
||||
#
|
||||
#
|
||||
# ex_text = SimpleNamespace(
|
||||
# type=tldp.doctypes.text.Text,
|
||||
# filename=opj(sampledocs, 'text-simple.txt'),
|
||||
# )
|
||||
#
|
||||
#
|
||||
# ex_markdown = SimpleNamespace(
|
||||
# type=tldp.doctypes.markdown.Markdown,
|
||||
# filename=opj(sampledocs, 'markdown-simple.md'),
|
||||
|
|
|
@ -66,7 +66,7 @@ class TestToolsFilesystem(unittest.TestCase):
|
|||
if os.path.isfile(filename):
|
||||
shutil.copy(filename, newname)
|
||||
else:
|
||||
with open(newname, 'w') as f:
|
||||
with open(newname, 'w'):
|
||||
pass
|
||||
relname = os.path.relpath(newname, self.tempdir)
|
||||
return relname, newname
|
||||
|
|
Loading…
Reference in New Issue