aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/py/xml-rewrite-2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py
index 42cb7d3..721147b 100755
--- a/src/py/xml-rewrite-2.py
+++ b/src/py/xml-rewrite-2.py
@@ -2,10 +2,12 @@
# Copyright 2004-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public Licence v2
+
import sys
import io
from xml.sax.saxutils import quoteattr, escape
from optparse import OptionParser, make_option
+from xml.sax.saxutils import XMLGenerator
def add_gentoo_classpath(document):
@@ -159,9 +161,6 @@ class ExpatRewriter(StreamRewriterBase):
self.p(escape(data))
-from xml.sax.saxutils import XMLGenerator
-
-
class SaxRewriter(XMLGenerator, StreamRewriterBase):
"""
Using Sax gives us the support for writing back doctypes and all easily