[Python-checkins] CVS: python/dist/src/Lib/xml __init__.py,1.9,1.10

Martin v. L?wis loewis@users.sourceforge.net
2001年3月27日 00:42:14 -0800


Update of /cvsroot/python/python/dist/src/Lib/xml
In directory usw-pr-cvs1:/tmp/cvs-serv25373
Modified Files:
	__init__.py 
Log Message:
Use Guido's trick for always extracting the version number from a
CVS Revision string correctly, even under -kv.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/__init__.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** __init__.py	2001年02月09日 12:03:45	1.9
--- __init__.py	2001年03月27日 08:42:12	1.10
***************
*** 16,20 ****
 __all__ = ["dom", "parsers", "sax"]
 
! __version__ = "$Revision$".split()[1]
 
 
--- 16,23 ----
 __all__ = ["dom", "parsers", "sax"]
 
! # 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]
 
 

AltStyle によって変換されたページ (->オリジナル) /