Commit 94ff329e authored by Guido Günther's avatar Guido Günther

tmpfile: flake8 clean

parent f083bf1e
......@@ -26,6 +26,7 @@ from gbp.errors import GbpError
_old_tempdirs = []
def init_tmpdir(path, prefix):
"""Initialize a temporary directory structure"""
try:
......@@ -42,6 +43,7 @@ def init_tmpdir(path, prefix):
tempfile.tempdir = tmpdir
return tmpdir
def del_tmpdir():
"""Remove tempdir and restore tempfile module"""
if _old_tempdirs:
......@@ -51,4 +53,3 @@ def del_tmpdir():
tempfile.tempdir = _old_tempdirs.pop()
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment