From f745ebcae832a1fe3a0d38c97741b971c211c8e9 Mon Sep 17 00:00:00 2001 From: Rob Brackett Date: Fri, 24 Jan 2025 15:50:36 -0800 Subject: [PATCH 1/2] Hotfix: remove stray print, prep v0.1.6 I botched it on v0.1.5. --- .gitignore | 2 ++ docs/source/release-history.rst | 6 +++--- web_monitoring_diff/content_type.py | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 2396af2..b3cb149 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ # Created by .gitignore support plugin (hsz.mobi) +.DS_Store + .vscode ### Python template diff --git a/docs/source/release-history.rst b/docs/source/release-history.rst index 677db85..eed0f65 100644 --- a/docs/source/release-history.rst +++ b/docs/source/release-history.rst @@ -2,10 +2,10 @@ Release History =============== -In Development --------------- +Version 0.1.6 (2025-01-24) +-------------------------- -n/a +Remove stray logging statements that should not have been included in v0.1.5. Version 0.1.5 (2025-01-23) diff --git a/web_monitoring_diff/content_type.py b/web_monitoring_diff/content_type.py index dd52e46..c25400c 100644 --- a/web_monitoring_diff/content_type.py +++ b/web_monitoring_diff/content_type.py @@ -71,7 +71,6 @@ def is_not_html(text, headers=None, check_options='normal'): - `nosniff` uses the `Content-Type` header but does not sniff. - `ignore` doesn’t do any checking at all. """ - print(f'#is_not_html: check_options="{check_options}", headers={headers}, text={text[:500]}') if headers and (check_options == 'normal' or check_options == 'nosniff'): content_type = headers.get('Content-Type', '').split(';', 1)[0].strip() if content_type and VALID_CONTENT_TYPE_PATTERN.match(content_type): From 86b52a324104024375dc067e33eddb151990f3d4 Mon Sep 17 00:00:00 2001 From: Rob Brackett Date: Fri, 24 Jan 2025 15:52:14 -0800 Subject: [PATCH 2/2] Add PR to release history --- docs/source/release-history.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/release-history.rst b/docs/source/release-history.rst index eed0f65..e331098 100644 --- a/docs/source/release-history.rst +++ b/docs/source/release-history.rst @@ -5,7 +5,7 @@ Release History Version 0.1.6 (2025-01-24) -------------------------- -Remove stray logging statements that should not have been included in v0.1.5. +Remove stray logging statements that should not have been included in v0.1.5. (:issue:`194`) Version 0.1.5 (2025-01-23)