From 1284360c98b138dcafe623e4a58480cdcc9010de Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 22 May 2023 21:14:40 +1000 Subject: [PATCH] python: remove stray edlib.LOG calls. There debugging calls got left in.. Signed-off-by: NeilBrown --- python/lib-compose-email.py | 4 ---- python/lib-diff.py | 2 -- python/lib-shellcmd.py | 1 - python/module-notmuch.py | 2 -- python/render-calc.py | 1 - python/render-present.py | 2 -- 6 files changed, 12 deletions(-) diff --git a/python/lib-compose-email.py b/python/lib-compose-email.py index d2d6697a..0ca8234b 100644 --- a/python/lib-compose-email.py +++ b/python/lib-compose-email.py @@ -702,7 +702,6 @@ class compose_email(edlib.Pane): def handle_attach(self, key, focus, **a): "handle:K:CC:C-A" p = focus.call("PopupTile", "2", "", ret='pane') - edlib.LOG(p) if not p: return edlib.Efail p['prompt'] = "Attachment" @@ -711,13 +710,11 @@ class compose_email(edlib.Pane): p['pane-title'] = "Attachment File" p = p.call("attach-history", "*Attachment History*", "popup:close", ret='pane') - edlib.LOG("now", p) p.call("attach-file-entry", "file") return 1 def handle_do_attach(self, key, focus, str1, str2, **a): "handle:compose-email:attach" - edlib.LOG("attaching", str1) if not str1: return 1 if str2: @@ -726,7 +723,6 @@ class compose_email(edlib.Pane): (type, encoding) = mimetypes.guess_type(str1, False) if not type: type = "application/octet-stream" - edlib.LOG("type=", type) f, l = self.vmarks(self.view) m = edlib.Mark(orig=l) self.call("doc:set-ref", 0, m) diff --git a/python/lib-diff.py b/python/lib-diff.py index ca3de7ed..007abaf5 100644 --- a/python/lib-diff.py +++ b/python/lib-diff.py @@ -52,12 +52,10 @@ class DiffPane(edlib.Pane): def handle_next(self, key, focus, mark, **a): "handle-list/K:A-p/K:Prior" # Find previous diff hunk - edlib.LOG("prev") try: focus.call("text-search", 0, 1, "^([^-+]|$)", mark) focus.call("text-search", 0, 1, "^[-+]", mark) except edlib.commandfailed: - edlib.LOG("failed") pass return 1 diff --git a/python/lib-shellcmd.py b/python/lib-shellcmd.py index b8c58f7b..918ad508 100644 --- a/python/lib-shellcmd.py +++ b/python/lib-shellcmd.py @@ -100,7 +100,6 @@ class ShellPane(edlib.Pane): while b: r += b b = os.read(self.pipe.stdout.fileno(), 4096) - edlib.LOG("read", len(r)) except IOError: return 1 if r is None or len(r) == 0: diff --git a/python/module-notmuch.py b/python/module-notmuch.py index 42459419..26e131ee 100644 --- a/python/module-notmuch.py +++ b/python/module-notmuch.py @@ -403,7 +403,6 @@ def make_composition(db, focus, which = "PopupTile", how = "MD3tsa", tag = None) set_tag = "" if tag: set_tag = "/usr/bin/notmuch %s;" % tag - edlib.LOG(set_tag) m['email:sendmail'] = set_tag + "/usr/bin/notmuch insert --folder=sent --create-folder -new -unread +outbox" # NOTE this cannot be in ThisPane, else the pane we want to copy # content from will disappear. @@ -3162,7 +3161,6 @@ class notmuch_message_view(edlib.Pane): # Might be the first part of a multi-path alternative, # look earlier in the path i -= 1 - edlib.LOG("consider", p, i, ) if p[i].startswith("alternative:"): # this is one of several - can we handle it? group = ','.join(p[:i]) diff --git a/python/render-calc.py b/python/render-calc.py index f0875a27..ba04d013 100644 --- a/python/render-calc.py +++ b/python/render-calc.py @@ -123,7 +123,6 @@ class CalcView(edlib.Pane): comm2("cb", focus, val) return 1 return edlib.Efalse - edlib.LOG(key, str) if key == "result": self.result = str if key == "hex-result" or key == "oct-result": diff --git a/python/render-present.py b/python/render-present.py index 2b7b766b..d34bc041 100644 --- a/python/render-present.py +++ b/python/render-present.py @@ -737,10 +737,8 @@ class MarkdownPane(edlib.Pane): "handle:Commit" p = focus while p != p.parent: - edlib.LOG(p == self, p) p = p.parent par = self - edlib.LOG("try", par, par.parent); p = PresenterPane(par.parent) if p: p.call("attach-viewer") -- 2.39.5