From 1402ab2cb98563a548d03139bb2aa269965db342 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Sat, 16 Dec 2000 01:43:40 +0000 Subject: [PATCH] Use the string module instead of string methods; this should still work with Python 1.5.2 for now. --- Lib/xml/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py index a38db2d4561..2748d50b6c4 100644 --- a/Lib/xml/__init__.py +++ b/Lib/xml/__init__.py @@ -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)