From 4e4e187a84213702929395b118fe211890a9b923 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Feb 2025 17:39:23 +0100 Subject: [PATCH] Update beautifulsoup4 requirement from ==4.12.* to ==4.13.* (#4804) * Update beautifulsoup4 requirement from ==4.12.* to ==4.13.* Updates the requirements on [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) to permit the latest version. --- updated-dependencies: - dependency-name: beautifulsoup4 dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Replace findAll with find_all --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raphael Michel --- pyproject.toml | 2 +- src/pretix/base/services/mail.py | 2 +- src/tests/base/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5b0553b2e9..cf27a6f622 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ classifiers = [ dependencies = [ "arabic-reshaper==3.0.0", # Support for Arabic in reportlab "babel", - "BeautifulSoup4==4.12.*", + "BeautifulSoup4==4.13.*", "bleach==6.2.*", "celery==5.4.*", "chardet==5.2.*", diff --git a/src/pretix/base/services/mail.py b/src/pretix/base/services/mail.py index fea30a174b..29f681bd49 100644 --- a/src/pretix/base/services/mail.py +++ b/src/pretix/base/services/mail.py @@ -674,7 +674,7 @@ def replace_images_with_cid_paths(body_html): if body_html: email = BeautifulSoup(body_html, "lxml") cid_images = [] - for image in email.findAll('img'): + for image in email.find_all('img'): original_image_src = image['src'] try: diff --git a/src/tests/base/__init__.py b/src/tests/base/__init__.py index 876313d8db..e0186bbc3b 100644 --- a/src/tests/base/__init__.py +++ b/src/tests/base/__init__.py @@ -74,7 +74,7 @@ def extract_form_fields(soup): continue # textareas - for textarea in soup.findAll('textarea'): + for textarea in soup.find_all('textarea'): if textarea['name'] in data: if not isinstance(data[textarea['name']], list): data[textarea['name']] = [data[textarea['name']]]