]> granicus.if.org Git - python/commitdiff
Use the string module instead of string methods; this should still work
authorFred Drake <fdrake@acm.org>
Sat, 16 Dec 2000 01:43:40 +0000 (01:43 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 16 Dec 2000 01:43:40 +0000 (01:43 +0000)
with Python 1.5.2 for now.

Lib/xml/__init__.py

index a38db2d4561af54b0a7dab3cb012f06452b3645e..2748d50b6c47334e68aab4a5618bc9d5d184577c 100644 (file)
@@ -15,7 +15,9 @@ sax -- The Simple API for XML, developed by XML-Dev, led by David
 
 __all__ = ["dom", "parsers", "sax"]
 
-__version__ = "$Revision$"[1:-1].split()[1]
+import string
+__version__ = string.split("$Revision$")[1]
+del string
 
 
 _MINIMUM_XMLPLUS_VERSION = (0, 6, 1)