tempfiles: do not append '_diffoscope' to the temporary file names, as they are…

tempfiles: do not append '_diffoscope' to the temporary file names, as they are now all in their namespaced directory already Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent d6f1d04b
......@@ -29,7 +29,6 @@ logger = logging.getLogger(__name__)
def get_named_temporary_file(*args, **kwargs):
kwargs['dir'] = kwargs.pop('dir', _get_base_temporary_directory())
kwargs['suffix'] = kwargs.pop('suffix', '_diffoscope')
f = tempfile.NamedTemporaryFile(*args, **kwargs)
_FILES.append(f.name)
......@@ -39,7 +38,6 @@ def get_named_temporary_file(*args, **kwargs):
def get_temporary_directory(*args, **kwargs):
kwargs['dir'] = kwargs.pop('dir', _get_base_temporary_directory())
kwargs['suffix'] = kwargs.pop('suffix', '_diffoscope')
d = tempfile.TemporaryDirectory(*args, **kwargs)
_DIRS.append(d)
......
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