Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mesonium
gajim
Commits
76fa48af
Commit
76fa48af
authored
2 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
chore: JingeTransport: Add __future__ import
parent
72e5a16d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/common/jingle_transport.py
+7
-5
7 additions, 5 deletions
gajim/common/jingle_transport.py
with
7 additions
and
5 deletions
gajim/common/jingle_transport.py
+
7
−
5
View file @
76fa48af
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment