diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 20:46:39 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 20:46:39 (GMT) |
commit | ab199622905b2621b2ad9abcb324fb5f124cc12f (patch) | |
tree | b9f78d40a05178f73cc76669fffc1bc7707d2d58 /Lib/xml/sax/__init__.py | |
parent | 3f8dae73c74d2a0a0aa55c1669f73e0d6ab827e1 (diff) | |
download | cpython-ab199622905b2621b2ad9abcb324fb5f124cc12f.zip cpython-ab199622905b2621b2ad9abcb324fb5f124cc12f.tar.gz cpython-ab199622905b2621b2ad9abcb324fb5f124cc12f.tar.bz2 |
Use more string methods, remove import string
Diffstat (limited to 'Lib/xml/sax/__init__.py')
-rw-r--r-- | Lib/xml/sax/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xml/sax/__init__.py b/Lib/xml/sax/__init__.py index f119d84..6b1b1ba 100644 --- a/Lib/xml/sax/__init__.py +++ b/Lib/xml/sax/__init__.py @@ -58,14 +58,14 @@ _false = 0 if _false: import xml.sax.expatreader -import os, string, sys +import os, sys if os.environ.has_key("PY_SAX_PARSER"): - default_parser_list = string.split(os.environ["PY_SAX_PARSER"], ",") + default_parser_list = os.environ["PY_SAX_PARSER"].split(",") del os _key = "python.xml.sax.parser" if sys.platform[:4] == "java" and sys.registry.containsKey(_key): - default_parser_list = string.split(sys.registry.getProperty(_key), ",") + default_parser_list = sys.registry.getProperty(_key).split(",") def make_parser(parser_list = []): |