Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
421beedb
Commit
421beedb
authored
Jan 14, 2022
by
Philipp Hörist
Browse files
JID: Remove deprecation warning
This functionality is still desired
parent
21e8df5c
Pipeline
#9050
failed with stages
in 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/protocol.py
View file @
421beedb
...
...
@@ -671,7 +671,6 @@ class JID:
def
__eq__
(
self
,
other
:
Union
[
str
,
JID
])
->
bool
:
if
isinstance
(
other
,
str
):
deprecation_warning
(
'comparing string with JID is deprected'
)
try
:
return
JID
.
from_string
(
other
)
==
self
except
Exception
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment