summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-03-24 17:18:39 -0700
committerNathan Fritz <nathan@andyet.net>2010-03-24 17:18:39 -0700
commit7383f72367f5217c76ebb44e49a9753eb4f0aac2 (patch)
tree721cafe6ed1909ad0477d1b4ce55364b5db58fae
parent95d2614f2197e56b4c2d73f1453e7c772efcd64c (diff)
downloadslixmpp-7383f72367f5217c76ebb44e49a9753eb4f0aac2.tar.gz
slixmpp-7383f72367f5217c76ebb44e49a9753eb4f0aac2.tar.bz2
slixmpp-7383f72367f5217c76ebb44e49a9753eb4f0aac2.tar.xz
slixmpp-7383f72367f5217c76ebb44e49a9753eb4f0aac2.zip
stanzabase indent fix
-rw-r--r--.gitignore2
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py8
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