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:
commit
3f297195b0
4 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ Global commands which are to be linked to the Core class
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
from xml.etree import cElementTree as ET
|
from xml.etree import ElementTree as ET
|
||||||
from typing import List, Optional, Tuple
|
from typing import List, Optional, Tuple
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import time
|
||||||
import uuid
|
import uuid
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from typing import Callable, Dict, List, Optional, Set, Tuple, Type
|
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 functools import partial
|
||||||
|
|
||||||
from slixmpp import JID, InvalidJID
|
from slixmpp import JID, InvalidJID
|
||||||
|
|
|
@ -10,7 +10,7 @@ Add some facilities that are not available on the XEP_0045
|
||||||
slix plugin
|
slix plugin
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from xml.etree import cElementTree as ET
|
from xml.etree import ElementTree as ET
|
||||||
|
|
||||||
from poezio.common import safeJID
|
from poezio.common import safeJID
|
||||||
from slixmpp import JID
|
from slixmpp import JID
|
||||||
|
|
|
@ -20,7 +20,7 @@ import asyncio
|
||||||
import time
|
import time
|
||||||
from math import ceil, log10
|
from math import ceil, log10
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from xml.etree import cElementTree as ET
|
from xml.etree import ElementTree as ET
|
||||||
from typing import (
|
from typing import (
|
||||||
Any,
|
Any,
|
||||||
Callable,
|
Callable,
|
||||||
|
|
Loading…
Reference in a new issue