From c9494ac0fff1c37b5c3f457977230b7e51cb04f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 27 Mar 2001 08:42:12 +0000 Subject: Use Guido's trick for always extracting the version number from a CVS Revision string correctly, even under -kv. --- Lib/xml/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py index b26d378..7245b7e 100644 --- a/Lib/xml/__init__.py +++ b/Lib/xml/__init__.py @@ -15,7 +15,10 @@ sax -- The Simple API for XML, developed by XML-Dev, led by David __all__ = ["dom", "parsers", "sax"] -__version__ = "$Revision$".split()[1] +# When being checked-out without options, this has the form +# "Revision: x.y " +# When exported using -kv, it is "x.y". +__version__ = "$Revision$".split()[-2][0] _MINIMUM_XMLPLUS_VERSION = (0, 6, 1) -- cgit v0.12