From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F7101396D1 for ; Sat, 12 Aug 2017 08:50:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69F701FC002; Sat, 12 Aug 2017 08:50:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42FFFE0BC7 for ; Sat, 12 Aug 2017 08:50:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2149E34175A for ; Sat, 12 Aug 2017 08:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D36637666 for ; Sat, 12 Aug 2017 08:50:09 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1502527800.75a7b951a560d5325eac83df884aab9db0d73139.monsieurp@gentoo> Subject: [gentoo-commits] proj/javatoolkit:master commit in: src/py/ X-VCS-Repository: proj/javatoolkit X-VCS-Files: src/py/xml-rewrite-2.py X-VCS-Directories: src/py/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 75a7b951a560d5325eac83df884aab9db0d73139 X-VCS-Branch: master Date: Sat, 12 Aug 2017 08:50:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b12f45ae-829c-4aae-99d4-d72aa00e780a X-Archives-Hash: be73f174b56930003fcb1c07ba81f81a commit: 75a7b951a560d5325eac83df884aab9db0d73139 Author: Patrice Clement gentoo org> AuthorDate: Fri Aug 11 17:38:09 2017 +0000 Commit: Patrice Clement gentoo org> CommitDate: Sat Aug 12 08:50:00 2017 +0000 URL: https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=75a7b951 reorganise imports src/py/xml-rewrite-2.py | 5 ++--- 1 file 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