summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-07-08 10:20:58 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-07-08 10:20:58 +0200
commit200e1a6128e5fcce219d3c1ccf542f1c75c356d1 (patch)
treec8961abff039e915a445e38aee7e93a4286123c5
parenta104e3722e67c043b6c5355514a6a67cf1ed63ae (diff)
downloadslixmpp-200e1a6128e5fcce219d3c1ccf542f1c75c356d1.tar.gz
slixmpp-200e1a6128e5fcce219d3c1ccf542f1c75c356d1.tar.bz2
slixmpp-200e1a6128e5fcce219d3c1ccf542f1c75c356d1.tar.xz
slixmpp-200e1a6128e5fcce219d3c1ccf542f1c75c356d1.zip
xep_0045: Make format string actually format strings
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--slixmpp/plugins/xep_0045/stanza.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0045/stanza.py b/slixmpp/plugins/xep_0045/stanza.py
index 1550853f..2e1a1f8e 100644
--- a/slixmpp/plugins/xep_0045/stanza.py
+++ b/slixmpp/plugins/xep_0045/stanza.py
@@ -26,7 +26,7 @@ class MUCBase(ElementBase):
interfaces = {'affiliation', 'role', 'jid', 'nick', 'room'}
def get_item_attr(self, attr, default: str):
- item = self.xml.find('{{{NS_USER}}}item')
+ item = self.xml.find(f'{{{NS_USER}}}item')
if item is None:
return default
return item.get(attr)
@@ -40,7 +40,7 @@ class MUCBase(ElementBase):
return item
def del_item_attr(self, attr):
- item = self.xml.find('{{{NS_USER}}}item')
+ item = self.xml.find('f{{{NS_USER}}}item')
if item is not None and attr in item.attrib:
del item.attrib[attr]