From d593487053de01cd756914a5cb5cc6b058c99c03 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! :-) --- command/build_py.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command/build_py.py') diff --git a/command/build_py.py b/command/build_py.py index 454424f3..63ced4b4 100644 --- a/command/build_py.py +++ b/command/build_py.py @@ -325,7 +325,7 @@ class build_py (Command): return outputs def build_module(self, module, module_file, package): - if isinstance(package, basestring): + if isinstance(package, str): package = package.split('.') elif not isinstance(package, (list, tuple)): raise TypeError( -- cgit v1.2.1