From a055eb86be029a5af00e76470df7f1a75ff4ad62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 1 Dec 2022 01:42:38 +0100 Subject: Remove debug prints. --- mu4web/html_render.py | 1 - mu4web/main.py | 1 - mu4web/mu.py | 1 - 3 files changed, 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) -- cgit v1.2.3