Merging upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
ab1302c465
commit
95bca6b33d
42 changed files with 1085 additions and 840 deletions
|
@ -9,8 +9,10 @@ from .compat import TemporaryDirectory
|
|||
|
||||
def with_temp_dir(f):
|
||||
"""A wrapper that creates and deletes a temporary directory."""
|
||||
|
||||
@wraps(f)
|
||||
def wrapped(*args, **kwargs):
|
||||
with TemporaryDirectory() as temp_dir:
|
||||
return f(*args, temp_dir=temp_dir, **kwargs)
|
||||
|
||||
return wrapped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue