From 3172c5d263eeffff1e89d03d79be3ccc1d60fbde Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 16 Oct 2007 18:12:55 +0000 Subject: Patch# 1258 by Christian Heimes: kill basestring. I like this because it makes the code shorter! :-) --- Lib/xml/sax/saxutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/xml/sax/saxutils.py') diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py index a4bcb0894d..a569c1d0d3 100644 --- a/Lib/xml/sax/saxutils.py +++ b/Lib/xml/sax/saxutils.py @@ -272,7 +272,7 @@ def prepare_input_source(source, base = ""): """This function takes an InputSource and an optional base URL and returns a fully resolved InputSource object ready for reading.""" - if isinstance(source, basestring): + if isinstance(source, str): source = xmlreader.InputSource(source) elif hasattr(source, "read"): f = source -- cgit v1.2.1