remove some debugging

This commit is contained in:
Damien Elmes 2011-04-19 07:20:39 +09:00
parent a45f2ceedc
commit b7bd648762
2 changed files with 5 additions and 8 deletions

View file

@ -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):

View file

@ -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():