diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0fe2c40 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +build/ diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index a0a3a33..0e9aba8 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -56,10 +56,10 @@ class ElementBase(tostring.ToString): if self.subitem is not None and child.tag == "{%s}%s" % (self.subitem.namespace, self.subitem.name): self.iterables.append(self.subitem(xml=child, parent=self)) - def _getattrib(self): - return self - - attrib = property(_getattrib) # backwards compatibility + + @property + def attrib(self): #backwards compatibility + return self def __iter__(self): self.idx = 0