aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-12-01 01:42:38 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-12-01 01:42:38 +0100
commita055eb86be029a5af00e76470df7f1a75ff4ad62 (patch)
tree5e96ed849889ca4d088fce8b482c2c96de450a7d
parentAdd ability to get raw message. (diff)
downloadmu4web-a055eb86be029a5af00e76470df7f1a75ff4ad62.tar.gz
mu4web-a055eb86be029a5af00e76470df7f1a75ff4ad62.tar.xz
Remove debug prints.
-rw-r--r--mu4web/html_render.py1
-rw-r--r--mu4web/main.py1
-rw-r--r--mu4web/mu.py1
3 files changed, 0 insertions, 3 deletions
diff --git a/mu4web/html_render.py b/mu4web/html_render.py
index 99140ad..2411939 100644
--- a/mu4web/html_render.py
+++ b/mu4web/html_render.py
@@ -19,7 +19,6 @@ def _render_document(document: HTML) -> str:
if isinstance(document, tuple):
tag, *body = document
if body and isinstance(body[0], dict):
- print(body[0])
attributes = ' '.join(f'{a}="{html.escape(b)}"'
for a, b in body[0].items())
body = body[1:]
diff --git a/mu4web/main.py b/mu4web/main.py
index ba424ee..68bf144 100644
--- a/mu4web/main.py
+++ b/mu4web/main.py
@@ -396,7 +396,6 @@ def index():
if not current_user.is_authenticated:
return redirect(url_for('login_page_', returnto=request.path))
if id := request.args.get('id'):
- print("id =", id)
response = response_for(''.join(id).replace(' ', '+'))
else:
response = index_page()
diff --git a/mu4web/mu.py b/mu4web/mu.py
index 09861af..bcce0ed 100644
--- a/mu4web/mu.py
+++ b/mu4web/mu.py
@@ -112,7 +112,6 @@ def search(query: str,
cmdline.extend(['--sortfield', sortfield])
if reverse:
cmdline.append('--reverse')
- print(cmdline)
cmd = subprocess.run(cmdline, capture_output=True)
if cmd.returncode == 1:
raise MuError(cmd.returncode)