diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..0fe2c40e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +build/ diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index a0a3a337..0e9aba8e 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 |