summaryrefslogtreecommitdiffstats
path: root/Demo/xml
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/xml')
-rw-r--r--Demo/xml/elem_count.py2
-rw-r--r--Demo/xml/roundtrip.py4
-rw-r--r--Demo/xml/rss2html.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/Demo/xml/elem_count.py b/Demo/xml/elem_count.py
index 4316199..7b53189 100644
--- a/Demo/xml/elem_count.py
+++ b/Demo/xml/elem_count.py
@@ -30,7 +30,7 @@ class FancyCounter(handler.ContentHandler):
for pair in self._attr_types.items():
print "%20s %d" % pair
-
+
parser = make_parser()
parser.setContentHandler(FancyCounter())
parser.parse(sys.argv[1])
diff --git a/Demo/xml/roundtrip.py b/Demo/xml/roundtrip.py
index e42bf1b..8d7d437 100644
--- a/Demo/xml/roundtrip.py
+++ b/Demo/xml/roundtrip.py
@@ -16,7 +16,7 @@ class ContentGenerator(handler.ContentHandler):
self._out = out
# ContentHandler methods
-
+
def startDocument(self):
self._out.write('<?xml version="1.0" encoding="iso-8859-1"?>\n')
@@ -34,7 +34,7 @@ class ContentGenerator(handler.ContentHandler):
def ignorableWhitespace(self, content):
self._out.write(content)
-
+
def processingInstruction(self, target, data):
self._out.write('<?%s %s?>' % (target, data))
diff --git a/Demo/xml/rss2html.py b/Demo/xml/rss2html.py
index df5d1c7..15c9891 100644
--- a/Demo/xml/rss2html.py
+++ b/Demo/xml/rss2html.py
@@ -80,7 +80,7 @@ class RSSHandler(handler.ContentHandler):
if name == "rss":
self._out.write(bottom)
-
+
def characters(self, content):
self._text = self._text + content