mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remove some debugging
This commit is contained in:
parent
a45f2ceedc
commit
b7bd648762
2 changed files with 5 additions and 8 deletions
|
@ -134,9 +134,7 @@ class DeckModel(QAbstractTableModel):
|
|||
def endReset(self):
|
||||
t = time.time()
|
||||
self.endResetModel()
|
||||
print "end", time.time() - t; t = time.time()
|
||||
self.restoreSelection()
|
||||
print "sel", time.time() - t; t = time.time()
|
||||
self.browser.mw.progress.finish()
|
||||
|
||||
def reverse(self):
|
||||
|
|
|
@ -315,7 +315,6 @@ class Editor(object):
|
|||
######################################################################
|
||||
|
||||
def bridge(self, str):
|
||||
print "bridge", str
|
||||
if not self.fact or not runHook:
|
||||
# shutdown
|
||||
return
|
||||
|
@ -817,11 +816,11 @@ class EditorWebView(AnkiWebView):
|
|||
clip.setMimeData(mime)
|
||||
|
||||
def _processMime(self, mime):
|
||||
print "html=%s image=%s urls=%s txt=%s" % (
|
||||
mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText())
|
||||
print "html", mime.html()
|
||||
print "urls", mime.urls()
|
||||
print "text", mime.text()
|
||||
# print "html=%s image=%s urls=%s txt=%s" % (
|
||||
# mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText())
|
||||
# print "html", mime.html()
|
||||
# print "urls", mime.urls()
|
||||
# print "text", mime.text()
|
||||
if mime.hasUrls():
|
||||
return self._processUrls(mime)
|
||||
elif mime.hasImage():
|
||||
|
|
Loading…
Reference in a new issue