Add underscore to temporary download filename suffix
This commit is contained in:
parent
8cfa46f539
commit
231c1fbe59
@ -1265,7 +1265,7 @@ class TempDownloadManager:
|
|||||||
# Make sure that the filename is not too long
|
# Make sure that the filename is not too long
|
||||||
suggested_name = utils.elide_filename(suggested_name, 50)
|
suggested_name = utils.elide_filename(suggested_name, 50)
|
||||||
fobj = tempfile.NamedTemporaryFile(dir=tmpdir.name, delete=False,
|
fobj = tempfile.NamedTemporaryFile(dir=tmpdir.name, delete=False,
|
||||||
suffix=suggested_name)
|
suffix='_' + suggested_name)
|
||||||
self.files.append(fobj)
|
self.files.append(fobj)
|
||||||
return fobj
|
return fobj
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user