comparison libervia/backend/plugins/plugin_misc_text_syntaxes.py @ 4334:111dce64dcb5

plugins XEP-0300, XEP-0446, XEP-0447, XEP0448 and others: Refactoring to use Pydantic: Pydantic models are used more and more in Libervia, for the bridge API, and also to convert `domish.Element` to internal representation. Type hints have also been added in many places. rel 453
author Goffi <goffi@goffi.org>
date Tue, 03 Dec 2024 00:12:38 +0100
parents 45662662a432
children
comparison
equal deleted inserted replaced
4333:e94799a0908f 4334:111dce64dcb5
41 try: 41 try:
42 from lxml.html import clean 42 from lxml.html import clean
43 except ImportError: 43 except ImportError:
44 raise exceptions.MissingModule( 44 raise exceptions.MissingModule(
45 'Missing module "lxml_html_clean". Please download and install it from ' 45 'Missing module "lxml_html_clean". Please download and install it from '
46 'http://lxml.de/. Note that this is a separate package to install in addition ' 46 "http://lxml.de/. Note that this is a separate package to install in addition "
47 'to "lxml".' 47 'to "lxml".'
48 ) 48 )
49 49
50 log = getLogger(__name__) 50 log = getLogger(__name__)
51 51