Add underscore to temporary download filename suffix

This commit is contained in:
Florian Bruhin 2018-09-09 13:44:36 +02:00
parent 8cfa46f539
commit 231c1fbe59

View File

@ -1265,7 +1265,7 @@ class TempDownloadManager:
# Make sure that the filename is not too long
suggested_name = utils.elide_filename(suggested_name, 50)
fobj = tempfile.NamedTemporaryFile(dir=tmpdir.name, delete=False,
suffix=suggested_name)
suffix='_' + suggested_name)
self.files.append(fobj)
return fobj