Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/javatoolkit:master commit in: src/py/
Date: Sat, 12 Aug 2017 08:50:13
Message-Id: 1502527800.75a7b951a560d5325eac83df884aab9db0d73139.monsieurp@gentoo
1 commit: 75a7b951a560d5325eac83df884aab9db0d73139
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 11 17:38:09 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 12 08:50:00 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=75a7b951
7
8 reorganise imports
9
10 src/py/xml-rewrite-2.py | 5 ++---
11 1 file changed, 2 insertions(+), 3 deletions(-)
12
13 diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py
14 index 42cb7d3..721147b 100755
15 --- a/src/py/xml-rewrite-2.py
16 +++ b/src/py/xml-rewrite-2.py
17 @@ -2,10 +2,12 @@
18 # Copyright 2004-2006 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public Licence v2
20
21 +
22 import sys
23 import io
24 from xml.sax.saxutils import quoteattr, escape
25 from optparse import OptionParser, make_option
26 +from xml.sax.saxutils import XMLGenerator
27
28
29 def add_gentoo_classpath(document):
30 @@ -159,9 +161,6 @@ class ExpatRewriter(StreamRewriterBase):
31 self.p(escape(data))
32
33
34 -from xml.sax.saxutils import XMLGenerator
35 -
36 -
37 class SaxRewriter(XMLGenerator, StreamRewriterBase):
38 """
39 Using Sax gives us the support for writing back doctypes and all easily