mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Merge pull request #1228 from glacambre/fix_1204
native_main.py: Add ".txt" suffix to temporary file names
This commit is contained in:
commit
255602ba6f
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ def handleMessage(message):
|
|||
prefix = ""
|
||||
prefix = "tmp_{}_".format(sanitizeFilename(prefix))
|
||||
|
||||
(handle, filepath) = tempfile.mkstemp(prefix=prefix)
|
||||
(handle, filepath) = tempfile.mkstemp(prefix=prefix, suffix=".txt")
|
||||
with os.fdopen(handle, "w") as file:
|
||||
file.write(message["content"])
|
||||
reply["content"] = filepath
|
||||
|
|
Loading…
Add table
Reference in a new issue