mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -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)' %
|
'User-Agent': 'Mozilla/5.0 (compatible; Anki/%s)' %
|
||||||
ankiqt.appVersion })
|
ankiqt.appVersion })
|
||||||
filecontents = urllib2.urlopen(req).read()
|
filecontents = urllib2.urlopen(req).read()
|
||||||
(fd, name) = tempfile.mkstemp(prefix="anki", suffix=".%s" %
|
(fd, name) = tempfile.mkstemp(prefix="paste", suffix=".%s" %
|
||||||
ext.encode("ascii"))
|
ext.encode("ascii"))
|
||||||
file = os.fdopen(fd, "wb")
|
file = os.fdopen(fd, "wb")
|
||||||
file.write(filecontents)
|
file.write(filecontents)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue