comparison sat/tools/xmpp_datetime.py @ 3911:8289ac1b34f4

plugin XEP-0384: Fully reworked to adjust to the reworked python-omemo: - support for both (modern) OMEMO under the `urn:xmpp:omemo:2` namespace and (legacy) OMEMO under the `eu.siacs.conversations.axolotl` namespace - maintains one identity across both versions of OMEMO - migrates data from the old plugin - includes more features for protocol stability - uses SCE for modern OMEMO - fully type-checked, linted and format-checked - added type hints to various pieces of backend code used by the plugin - added stubs for some Twisted APIs used by the plugin under stubs/ (use `export MYPYPATH=stubs/` before running mypy) - core (xmpp): enabled `send` trigger and made it an asyncPoint fix 375
author Syndace <me@syndace.dev>
date Tue, 23 Aug 2022 21:06:24 +0200
parents 46930301f0c1
children cecf45416403
comparison
equal deleted inserted replaced
3910:199598223f82 3911:8289ac1b34f4
14 # GNU Affero General Public License for more details. 14 # GNU Affero General Public License for more details.
15 15
16 # You should have received a copy of the GNU Affero General Public License 16 # You should have received a copy of the GNU Affero General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. 17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19 # Type-check with `mypy --strict`
20 # Lint with `pylint`
21
22 from sat.core import exceptions
23 from datetime import date, datetime, time, timezone 19 from datetime import date, datetime, time, timezone
24 import re 20 import re
25 from typing import Optional, Tuple 21 from typing import Optional, Tuple
22
23 from sat.core import exceptions
26 24
27 25
28 __all__ = [ # pylint: disable=unused-variable 26 __all__ = [ # pylint: disable=unused-variable
29 "format_date", 27 "format_date",
30 "parse_date", 28 "parse_date",