Skip to content

Commit

Permalink
[REF] Odoo: lxml 5.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBinsfeld committed May 15, 2024
1 parent dca6b3b commit 8948ec1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions odoo/tools/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
import idna
import markupsafe
from lxml import etree, html
from lxml.html import clean, defs
from lxml.html import defs
from lxml_html_clean import clean, Cleaner
from werkzeug import urls

import odoo
Expand Down Expand Up @@ -49,7 +50,7 @@
}


class _Cleaner(clean.Cleaner):
class _Cleaner(Cleaner):

_style_re = re.compile(r'''([\w-]+)\s*:\s*((?:[^;"']|"[^";]*"|'[^';]*')+)''')

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'idna',
'Jinja2',
'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'lxml_html_clean',
'libsass',
'MarkupSafe',
'num2words',
Expand Down

0 comments on commit 8948ec1

Please sign in to comment.