mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Use Guido's trick for always extracting the version number from a
CVS Revision string correctly, even under -kv.
This commit is contained in:
parent
f78a81b47b
commit
c9494ac0ff
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue