Skip to content
Snippets Groups Projects
Commit 76fa48af authored by Philipp Hörist's avatar Philipp Hörist
Browse files

chore: JingeTransport: Add __future__ import

parent 72e5a16d
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@
Handles Jingle Transports (currently only ICE-UDP)
"""
from __future__ import annotations
from typing import Any
from typing import Optional
......@@ -28,6 +30,11 @@
from nbxmpp.namespaces import Namespace
from nbxmpp.util import generate_id
try:
from gi.repository import Farstream
except ImportError:
pass
from gajim.common import app
from gajim.common.client import Client
from gajim.common.file_props import FileProp
......@@ -422,11 +429,6 @@ def make_transport(self) -> nbxmpp.Node:
transport.setAttr('sid', self.sid)
return transport
try:
from gi.repository import Farstream
except ImportError:
pass
class JingleTransportICEUDP(JingleTransport):
def __init__(self, node: Optional[nbxmpp.Node]) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment