summaryrefslogtreecommitdiff
path: root/boto/jsonresponse.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/jsonresponse.py')
-rw-r--r--boto/jsonresponse.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/boto/jsonresponse.py b/boto/jsonresponse.py
index ac3f1b4a..f872b429 100644
--- a/boto/jsonresponse.py
+++ b/boto/jsonresponse.py
@@ -23,6 +23,7 @@
import xml.sax
from boto import utils
+
class XmlHandler(xml.sax.ContentHandler):
def __init__(self, root_node, connection):
@@ -52,7 +53,8 @@ class XmlHandler(xml.sax.ContentHandler):
if not isinstance(s, bytes):
s = s.encode('utf-8')
xml.sax.parseString(s, self)
-
+
+
class Element(dict):
def __init__(self, connection=None, element_name=None,
@@ -116,6 +118,7 @@ class Element(dict):
elif isinstance(self.parent, ListElement):
self.parent.append(value)
+
class ListElement(list):
def __init__(self, connection=None, element_name=None,