summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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