stanzabase indent fix

This commit is contained in:
Nathan Fritz 2010-03-24 17:18:39 -07:00
parent 95d2614f21
commit 7383f72367
2 changed files with 6 additions and 4 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.pyc
build/

View file

@ -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): 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)) 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): def __iter__(self):
self.idx = 0 self.idx = 0