diff options
author | Guido van Rossum <guido@python.org> | 2007-10-16 18:12:55 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-16 18:12:55 +0000 |
commit | 6a32ba353a2706dc5b6813ec51542b889ccbf718 (patch) | |
tree | 971a039a48c3bdba999cdfdff92c86dec297b571 /Lib/xml/dom | |
parent | faf1de5e4d751d4adda57625867a994cc2199612 (diff) | |
download | cpython-6a32ba353a2706dc5b6813ec51542b889ccbf718.tar.gz |
Patch# 1258 by Christian Heimes: kill basestring.
I like this because it makes the code shorter! :-)
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r-- | Lib/xml/dom/pulldom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/dom/pulldom.py b/Lib/xml/dom/pulldom.py index c15618f9ce..81a36b073e 100644 --- a/Lib/xml/dom/pulldom.py +++ b/Lib/xml/dom/pulldom.py @@ -325,7 +325,7 @@ default_bufsize = (2 ** 14) - 20 def parse(stream_or_string, parser=None, bufsize=None): if bufsize is None: bufsize = default_bufsize - if isinstance(stream_or_string, basestring): + if isinstance(stream_or_string, str): stream = open(stream_or_string) else: stream = stream_or_string |