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): def endReset(self):
t = time.time() t = time.time()
self.endResetModel() self.endResetModel()
print "end", time.time() - t; t = time.time()
self.restoreSelection() self.restoreSelection()
print "sel", time.time() - t; t = time.time()
self.browser.mw.progress.finish() self.browser.mw.progress.finish()
def reverse(self): def reverse(self):

View file

@ -315,7 +315,6 @@ class Editor(object):
###################################################################### ######################################################################
def bridge(self, str): def bridge(self, str):
print "bridge", str
if not self.fact or not runHook: if not self.fact or not runHook:
# shutdown # shutdown
return return
@ -817,11 +816,11 @@ class EditorWebView(AnkiWebView):
clip.setMimeData(mime) clip.setMimeData(mime)
def _processMime(self, mime): def _processMime(self, mime):
print "html=%s image=%s urls=%s txt=%s" % ( # print "html=%s image=%s urls=%s txt=%s" % (
mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText()) # mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText())
print "html", mime.html() # print "html", mime.html()
print "urls", mime.urls() # print "urls", mime.urls()
print "text", mime.text() # print "text", mime.text()
if mime.hasUrls(): if mime.hasUrls():
return self._processUrls(mime) return self._processUrls(mime)
elif mime.hasImage(): elif mime.hasImage():