mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
copy+paste / drag+drag use 'paste' as temp file prefix
This commit is contained in:
parent
73bd124b6c
commit
a6c591edf9
1 changed files with 1 additions and 1 deletions
|
|
@ -1089,7 +1089,7 @@ class FactEdit(QTextEdit):
|
|||
'User-Agent': 'Mozilla/5.0 (compatible; Anki/%s)' %
|
||||
ankiqt.appVersion })
|
||||
filecontents = urllib2.urlopen(req).read()
|
||||
(fd, name) = tempfile.mkstemp(prefix="anki", suffix=".%s" %
|
||||
(fd, name) = tempfile.mkstemp(prefix="paste", suffix=".%s" %
|
||||
ext.encode("ascii"))
|
||||
file = os.fdopen(fd, "wb")
|
||||
file.write(filecontents)
|
||||
|
|
|
|||
Loading…
Reference in a new issue