aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-09-10 17:37:35 +0200
committerGuido Günther <agx@sigxcpu.org>2016-09-12 08:52:15 +0200
commit94ff329e58f7d0b645a49cbab90119b7856c8ab1 (patch)
treed839e146da337b94246820a725cde6f4a70725fb
parentf083bf1ef748c83f859592650e9b9b4b1125d65c (diff)
tmpfile: flake8 clean
-rw-r--r--gbp/tmpfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/tmpfile.py b/gbp/tmpfile.py
index d49380c9..755967bc 100644
--- a/gbp/tmpfile.py
+++ b/gbp/tmpfile.py
@@ -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\:·:
-