Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c132a016 by lovetox at 2022-01-14T15:30:36+01:00
Simplify isinstance check
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/file_transfer_jingle.py
Changes:
=====================================
gajim/gtk/conversation/rows/file_transfer_jingle.py
=====================================
@@ -243,8 +243,7 @@ def process_event(self, event: TransferEventT) -> None:
elif isinstance(event, FileHashError):
self._ui.action_stack.set_visible_child_name('hash-error')
self._ui.transfer_action.set_text(_('File Verification Failed'))
- elif (isinstance(event, FileRequestError) or
- isinstance(event, FileSendError)):
+ elif isinstance(event, (FileRequestError, FileSendError)):
self._ui.action_stack.set_visible_child_name('error')
self._ui.transfer_action.set_text(_('File Transfer Cancelled'))
error_text = _('Connection with %s could not be '
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c132a0165a440224da8219c1d994726f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c132a0165a440224da8219c1d994726f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
421beedb by lovetox at 2022-01-14T14:51:37+01:00
JID: Remove deprecation warning
This functionality is still desired
- - - - -
1 changed file:
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/protocol.py
=====================================
@@ -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:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/421beedb2247536389087ae5…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/421beedb2247536389087ae5…
You're receiving this email because of your account on dev.gajim.org.