Skip to content

Commit

Permalink
replace inlinestyler with css_inline to fix CSSSelector error
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bähr committed May 24, 2024
1 parent 39700fe commit 9511639
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies = [
'celery==5.2.*',
'kombu==5.2.*',
'django-statici18n==2.3.*',
'inlinestyler==0.2.*',
'css-inline==0.7.*',
'BeautifulSoup4==4.12.*',
'slimit',
'lxml',
Expand Down
2 changes: 1 addition & 1 deletion src/pretix/base/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from django.template.loader import get_template
from django.utils.timezone import now
from django.utils.translation import get_language, gettext_lazy as _
from inlinestyler.utils import inline_css
from css_inline import inline as inline_css

from pretix.base.i18n import (
LazyCurrencyNumber, LazyDate, LazyExpiresDate, LazyNumber,
Expand Down
2 changes: 0 additions & 2 deletions src/pretix/base/services/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from typing import Any, Dict, List, Sequence, Union
from urllib.parse import urljoin, urlparse

import cssutils
import pytz
import requests
from bs4 import BeautifulSoup
Expand Down Expand Up @@ -43,7 +42,6 @@

logger = logging.getLogger('pretix.base.mail')
INVALID_ADDRESS = 'invalid-pretix-mail-address'
cssutils.log.setLevel(logging.CRITICAL)


class TolerantDict(dict):
Expand Down
2 changes: 1 addition & 1 deletion src/pretix/base/services/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.template.loader import get_template
from django.utils.timezone import override
from django_scopes import scope, scopes_disabled
from inlinestyler.utils import inline_css
from css_inline import inline as inline_css

from pretix.base.i18n import language
from pretix.base.models import LogEntry, NotificationSetting, User
Expand Down

0 comments on commit 9511639

Please sign in to comment.