diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-08-11 19:38:09 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-08-12 10:50:00 +0200 |
commit | 75a7b951a560d5325eac83df884aab9db0d73139 (patch) | |
tree | dc029d456c034fcb10858336f424a662efe589a8 | |
parent | remove useless or statements (diff) | |
download | javatoolkit-75a7b951a560d5325eac83df884aab9db0d73139.tar.gz javatoolkit-75a7b951a560d5325eac83df884aab9db0d73139.tar.bz2 javatoolkit-75a7b951a560d5325eac83df884aab9db0d73139.zip |
reorganise imports
-rwxr-xr-x | src/py/xml-rewrite-2.py | 5 |
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 |