From 7383f72367f5217c76ebb44e49a9753eb4f0aac2 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Wed, 24 Mar 2010 17:18:39 -0700 Subject: [PATCH] stanzabase indent fix --- .gitignore | 2 ++ sleekxmpp/xmlstream/stanzabase.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .gitignore 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