Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
6ab0eb5e by Philipp Hörist at 2024-04-19T17:15:08+02:00
cfix: Revert breaking argument name change

- - - - -
2a3fbf9c by Philipp Hörist at 2024-04-19T17:16:00+02:00
cfix: Change variable name in all places

- - - - -


3 changed files:

- nbxmpp/dispatcher.py
- nbxmpp/old_dispatcher.py
- nbxmpp/protocol.py


Changes:

=====================================
nbxmpp/dispatcher.py
=====================================
@@ -257,8 +257,8 @@ class StanzaDispatcher(Observable):
 
         # end stream:stream tag received
         if self._parser.has_received_endtag():
-            self._log.info('End of stream: %s', self._parser.streamError)
-            self.notify('stream-end', self._parser.streamError)
+            self._log.info('End of stream: %s', self._parser.stream_error)
+            self.notify('stream-end', self._parser.stream_error)
             return
 
     def _register_namespace(self, xmlns):


=====================================
nbxmpp/old_dispatcher.py
=====================================
@@ -323,7 +323,7 @@ class XMPPDispatcher(PlugIn):
             self.Stream.Parse(data)
             # end stream:stream tag received
             if self.Stream and self.Stream.has_received_endtag():
-                self._owner.disconnect(self.Stream.streamError)
+                self._owner.disconnect(self.Stream.stream_error)
                 return 0
         except ExpatError as error:
             log.error('Invalid XML received from server. Forcing disconnect.')


=====================================
nbxmpp/protocol.py
=====================================
@@ -1534,7 +1534,7 @@ class Iq(Protocol):
 
     def __init__(self,
                  typ: Optional[str] = None,
-                 query_ns: Optional[str] = None,
+                 queryNS: Optional[str] = None,  # noqa: N803
                  attrs: Optional[dict[str, str]] = None,
                  to: Optional[Union[JID, str]] = None,
                  frm: Optional[Union[JID, str]] = None,
@@ -1559,8 +1559,8 @@ class Iq(Protocol):
                           node=node)
         if payload:
             self.setQueryPayload(payload)
-        if query_ns:
-            self.setQueryNS(query_ns)
+        if queryNS:
+            self.setQueryNS(queryNS)
 
     def getQuery(self) -> Optional[Node]:
         """



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/compare/a67ad5a70425457766646b7cfad0254587e2daa8...2a3fbf9c75131c1352e66082a38f9d4d07e067e9

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/compare/a67ad5a70425457766646b7cfad0254587e2daa8...2a3fbf9c75131c1352e66082a38f9d4d07e067e9
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to