summaryrefslogtreecommitdiffstats
path: root/Demo/xml
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-18 06:16:08 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-07-18 06:16:08 (GMT)
commit182b5aca27d376b08a2904bed42b751496f932f3 (patch)
treedf13115820dbc879c0fe2eae488c9f8c0215a7da /Demo/xml
parente6ddc8b20b493fef2e7cffb2e1351fe1d238857e (diff)
downloadcpython-182b5aca27d376b08a2904bed42b751496f932f3.zip
cpython-182b5aca27d376b08a2904bed42b751496f932f3.tar.gz
cpython-182b5aca27d376b08a2904bed42b751496f932f3.tar.bz2
Whitespace normalization, via reindent.py.
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