diff options
author | nicoco <nicoco@nicoco.fr> | 2022-09-22 23:19:16 +0200 |
---|---|---|
committer | nicoco <nicoco@nicoco.fr> | 2022-09-22 23:19:16 +0200 |
commit | e062181f84e2af4b622d6bba29b3024204769fe6 (patch) | |
tree | 5546cefdafa0894316667e3437864ef7cd36253f | |
parent | 97b0c7ffac306402155443dfa06c832e758806eb (diff) | |
download | slixmpp-e062181f84e2af4b622d6bba29b3024204769fe6.tar.gz slixmpp-e062181f84e2af4b622d6bba29b3024204769fe6.tar.bz2 slixmpp-e062181f84e2af4b622d6bba29b3024204769fe6.tar.xz slixmpp-e062181f84e2af4b622d6bba29b3024204769fe6.zip |
xep_0084: fix typo and getters
"with" instead of "width"; wrong syntax for getters
-rw-r--r-- | slixmpp/plugins/xep_0084/stanza.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0084/stanza.py b/slixmpp/plugins/xep_0084/stanza.py index a2132c0b..ed83526e 100644 --- a/slixmpp/plugins/xep_0084/stanza.py +++ b/slixmpp/plugins/xep_0084/stanza.py @@ -80,16 +80,16 @@ class Info(ElementBase): self._set_int('bytes', value) def get_height(self) -> int: - self._get_int('height') + return self._get_int('height') def set_height(self, value: int): self._set_int('height', value) def get_width(self) -> int: - self._get_int(self, 'width') + return self._get_int('width') def set_width(self, value: int): - self._set_int('with', value) + self._set_int('width', value) class Pointer(ElementBase): |