From e062181f84e2af4b622d6bba29b3024204769fe6 Mon Sep 17 00:00:00 2001 From: nicoco Date: Thu, 22 Sep 2022 23:19:16 +0200 Subject: [PATCH] xep_0084: fix typo and getters "with" instead of "width"; wrong syntax for getters --- slixmpp/plugins/xep_0084/stanza.py | 6 +++--- 1 file 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):