Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gajim/common/modules/http_auth.py')
-rw-r--r--gajim/common/modules/http_auth.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gajim/common/modules/http_auth.py b/gajim/common/modules/http_auth.py
index 3d993dc5c..d2f48e962 100644
--- a/gajim/common/modules/http_auth.py
+++ b/gajim/common/modules/http_auth.py
@@ -16,8 +16,6 @@
from __future__ import annotations
-from typing import Union
-
import nbxmpp
from nbxmpp.namespaces import Namespace
from nbxmpp.protocol import Iq
@@ -50,8 +48,8 @@ class HTTPAuth(BaseModule):
def _http_auth(self,
_con: types.xmppClient,
- stanza: Union[Iq, Message],
- properties: Union[IqProperties, MessageProperties]
+ stanza: Iq | Message,
+ properties: IqProperties | MessageProperties
) -> None:
if not properties.is_http_auth:
return
@@ -70,7 +68,7 @@ class HTTPAuth(BaseModule):
raise nbxmpp.NodeProcessed
def build_http_auth_answer(self,
- stanza: Union[Iq, Message],
+ stanza: Iq | Message,
answer: str
) -> None:
if answer == 'yes':