summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-03-27 08:42:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-03-27 08:42:12 (GMT)
commitc9494ac0fff1c37b5c3f457977230b7e51cb04f3 (patch)
tree1ba849ccd8cb89d69046e8b4545ab581b1e7bdc0 /Lib
parentf78a81b47baa04c78ca29ff4f4a8236297e852a0 (diff)
downloadcpython-c9494ac0fff1c37b5c3f457977230b7e51cb04f3.zip
cpython-c9494ac0fff1c37b5c3f457977230b7e51cb04f3.tar.gz
cpython-c9494ac0fff1c37b5c3f457977230b7e51cb04f3.tar.bz2
Use Guido's trick for always extracting the version number from a
CVS Revision string correctly, even under -kv.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xml/__init__.py5
1 files changed, 4 insertions, 1 deletions
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
+# "<dollar>Revision: x.y </dollar>"
+# When exported using -kv, it is "x.y".
+__version__ = "$Revision$".split()[-2][0]
_MINIMUM_XMLPLUS_VERSION = (0, 6, 1)