From 75a7b951a560d5325eac83df884aab9db0d73139 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Fri, 11 Aug 2017 19:38:09 +0200 Subject: reorganise imports --- src/py/xml-rewrite-2.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-65-gdbad