]> git.neil.brown.name Git - edlib.git/commitdiff
python: remove stray edlib.LOG calls.
authorNeilBrown <neil@brown.name>
Mon, 22 May 2023 11:14:40 +0000 (21:14 +1000)
committerNeilBrown <neil@brown.name>
Fri, 26 May 2023 22:18:42 +0000 (08:18 +1000)
There debugging calls got left in..

Signed-off-by: NeilBrown <neil@brown.name>
python/lib-compose-email.py
python/lib-diff.py
python/lib-shellcmd.py
python/module-notmuch.py
python/render-calc.py
python/render-present.py

index d2d6697aa356d225d2193bff2fe23ed6a910dc9a..0ca8234bcbe57d82b89204efef06f2b4d6281b84 100644 (file)
@@ -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)
index ca3de7ed956148e16e808375250e05468d8575b7..007abaf55678d1f771559944a43029e9d20b9852 100644 (file)
@@ -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
 
index b8c58f7b48f1ef1d5cb68788b1c0e454fdbabc7b..918ad50896a882eca7a4d886b352bfb2bad03aae 100644 (file)
@@ -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:
index 424594199b0100b27fce56d70f37a687b8c4eb22..26e131eed1e956b0926c51f5074ebae519a50fc0 100644 (file)
@@ -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])
index f0875a2785f0d7c3d5abd731b50821ecb371d620..ba04d0139b92f70ec9ec25481e2c6725bb5a1fc7 100644 (file)
@@ -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":
index 2b7b766ba3da70cfde17b48c25b6973cf345b914..d34bc041187d916fcb17c1c07e34b7a2f0baa1af 100644 (file)
@@ -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")