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/cProfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cProfile.py') diff --git a/Lib/cProfile.py b/Lib/cProfile.py index ae16277bcb..5d04341d71 100755 --- a/Lib/cProfile.py +++ b/Lib/cProfile.py @@ -153,7 +153,7 @@ class Profile(_lsprof.Profiler): # ____________________________________________________________ def label(code): - if isinstance(code, basestring): + if isinstance(code, str): return ('~', 0, code) # built-in functions ('~' sorts at the end) else: return (code.co_filename, code.co_firstlineno, code.co_name) -- cgit v1.2.1