Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1402ab2

Browse files
committed
Use the string module instead of string methods; this should still work
with Python 1.5.2 for now.
1 parent 5100133 commit 1402ab2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/xml/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
__all__ = ["dom", "parsers", "sax"]
1717

18-
__version__ = "$Revision$"[1:-1].split()[1]
18+
import string
19+
__version__ = string.split("$Revision$")[1]
20+
del string
1921

2022

2123
_MINIMUM_XMLPLUS_VERSION = (0, 6, 1)

0 commit comments

Comments
 (0)