summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2021-02-23 22:25:12 +0100
committerLink Mauve <linkmauve@linkmauve.fr>2021-02-27 11:19:41 +0100
commit85d5b9aeb3e0fa20b9cc2b5073a7daace85ddc6f (patch)
tree56cacee4bd14f31ddf2c3b6d24cbdb872f0a272e
parent1c5f0d6a4a0f99641aa9a3a79c3b8c3077fa08f2 (diff)
downloadpoezio-85d5b9aeb3e0fa20b9cc2b5073a7daace85ddc6f.tar.gz
poezio-85d5b9aeb3e0fa20b9cc2b5073a7daace85ddc6f.tar.bz2
poezio-85d5b9aeb3e0fa20b9cc2b5073a7daace85ddc6f.tar.xz
poezio-85d5b9aeb3e0fa20b9cc2b5073a7daace85ddc6f.zip
basetabs: remove unused imports
-rw-r--r--poezio/tabs/basetabs.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 1738ea39..23d4c03d 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -15,11 +15,10 @@ revolving around chats.
from __future__ import annotations
-import copy
import logging
import string
import asyncio
-import time
+from copy import copy
from math import ceil, log10
from datetime import datetime
from xml.etree import ElementTree as ET
@@ -41,7 +40,6 @@ from poezio import (
windows
)
from poezio.core.structs import Command, Completion, Status
-from poezio.common import safeJID
from poezio.config import config
from poezio.decorators import command_args_parser, refresh_wrapper
from poezio.logger import logger
@@ -563,7 +561,7 @@ class ChatTab(Tab):
@property
def jid(self) -> JID:
- return copy.copy(self._jid)
+ return copy(self._jid)
@jid.setter
def jid(self, value: JID) -> None:
@@ -749,7 +747,7 @@ class ChatTab(Tab):
if correct:
# XXX: Is the copy needed. Is the object passed here reused
# afterwards? Who knows.
- msg = copy.copy(msg)
+ msg = copy(msg)
msg['id'] = self.last_sent_message['id']
self.last_sent_message = msg