Permalink
Browse files

Fixed a problem with keyword args in call to Element constructor.

  • Loading branch information...
1 parent 84fd00b commit 5f82854b26d470b4755bc485feb48ae00fe3dd4e @garnaat garnaat committed Jan 17, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 boto/jsonresponse.py
View
9 boto/jsonresponse.py
@@ -134,14 +134,15 @@ def get_name(self, name):
def startElement(self, name, attrs, connection):
for lm in self.list_marker:
if name.endswith(lm):
- l = ListElement(self.connection, name, self.list_marker,
- self.item_marker,
- pythonize_name=self.pythonize_name)
+ l = ListElement(self.connection, name,
+ self.list_marker, self.item_marker,
+ self.pythonize_name)
setattr(self, self.get_name(name), l)
return l
if name in self.item_marker:
e = Element(self.connection, name, parent=self,
- self.list_marker, self.item_marker,
+ list_marker=self.list_marker,
+ item_marker=self.item_marker,
pythonize_name=self.pythonize_name)
self.append(e)
return e

0 comments on commit 5f82854

Please sign in to comment.