From a3d76ee426581f537af69825b5348480adea9a3a Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Tue, 8 Aug 2017 00:56:07 +0200 Subject: more cleanup --- src/py/eclipse-build.py | 3 --- src/py/maven-helper.py | 6 +----- src/py/xml-rewrite-2.py | 3 --- src/py/xml-rewrite-3.py | 2 -- src/py/xml-rewrite.py | 3 --- 5 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/py/eclipse-build.py b/src/py/eclipse-build.py index 2f41b3a..ab65307 100755 --- a/src/py/eclipse-build.py +++ b/src/py/eclipse-build.py @@ -15,9 +15,6 @@ from xml.dom.minidom import parse from javatoolkit.java.properties import PropertiesParser -__version__ = "$Revision: 1 $"[11:-2] - - if __name__ == '__main__': usage = "Eclipse Ant Build File writer " + __version__ + "\n" usage += "Copyright 2008 Gentoo Foundation\n" diff --git a/src/py/maven-helper.py b/src/py/maven-helper.py index 108abae..9aa41cc 100755 --- a/src/py/maven-helper.py +++ b/src/py/maven-helper.py @@ -24,11 +24,7 @@ from optparse import OptionParser, make_option from javatoolkit.maven.MavenPom import MavenPom -__version__ = "$Revision: 1.1 $"[11:-2] - - -def main() - +def main(): usage = "XML MAVEN POM MODULE " + __version__ + "\n" usage += "Copyright 2004,2006,2007 Gentoo Foundation\n" usage += "Distributed under the terms of the GNU General Public Lincense v2\n" diff --git a/src/py/xml-rewrite-2.py b/src/py/xml-rewrite-2.py index 2755bb6..5c8aa6b 100755 --- a/src/py/xml-rewrite-2.py +++ b/src/py/xml-rewrite-2.py @@ -26,9 +26,6 @@ from xml.sax.saxutils import quoteattr,escape from optparse import OptionParser, make_option -__version__ = "$Revision: 1.7 $"[11:-2] - - def add_gentoo_classpath(document): matches = document.getElementsByTagName("classpath") gcp = document.createElement("location") diff --git a/src/py/xml-rewrite-3.py b/src/py/xml-rewrite-3.py index 605e927..549443b 100755 --- a/src/py/xml-rewrite-3.py +++ b/src/py/xml-rewrite-3.py @@ -32,8 +32,6 @@ from javatoolkit.xml.DomRewriter import DomRewriter from javatoolkit.xml.SaxRewriter import SaxRewriter -__version__ = "$Revision: 1.7 $"[11:-2] - def main(): usage = "XML Rewrite Python Module Version " + __version__ + "\n" usage += "Copyright 2004,2006,2007 Gentoo Foundation\n" diff --git a/src/py/xml-rewrite.py b/src/py/xml-rewrite.py index 7e1dbc4..6bf8ea2 100755 --- a/src/py/xml-rewrite.py +++ b/src/py/xml-rewrite.py @@ -21,9 +21,6 @@ from optparse import OptionParser, make_option from xml.dom import NotFoundErr -__version__ = "$Revision: 1.6 $"[11:-2] - - class IOWrapper: def __init__(self, object): self.stream = object -- cgit v1.2.3-65-gdbad