Merge branch 'fix-xml' into 'master'

cElementTree has been deprecated since Python 3.3 and removed in Python 3.9.

See merge request poezio/poezio!74
This commit is contained in:
Maxime Buquet 2020-03-30 19:11:00 +02:00
commit 3f297195b0
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ Global commands which are to be linked to the Core class
"""
import asyncio
from xml.etree import cElementTree as ET
from xml.etree import ElementTree as ET
from typing import List, Optional, Tuple
import logging

View file

@ -16,7 +16,7 @@ import time
import uuid
from collections import defaultdict
from typing import Callable, Dict, List, Optional, Set, Tuple, Type
from xml.etree import cElementTree as ET
from xml.etree import ElementTree as ET
from functools import partial
from slixmpp import JID, InvalidJID

View file

@ -10,7 +10,7 @@ Add some facilities that are not available on the XEP_0045
slix plugin
"""
from xml.etree import cElementTree as ET
from xml.etree import ElementTree as ET
from poezio.common import safeJID
from slixmpp import JID

View file

@ -20,7 +20,7 @@ import asyncio
import time
from math import ceil, log10
from datetime import datetime
from xml.etree import cElementTree as ET
from xml.etree import ElementTree as ET
from typing import (
Any,
Callable,