From 755f75eef813963009a82e066e952f24077d1017 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 20 May 2002 17:29:46 +0000 Subject: Use types.StringTypes instead of explicit (str, unicode) list --- Lib/inspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/inspect.py b/Lib/inspect.py index 38b93bf..2f9511a 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -267,7 +267,7 @@ def getdoc(object): doc = object.__doc__ except AttributeError: return None - if not isinstance(doc, (str, unicode)): + if not isinstance(doc, types.StringTypes): return None try: lines = string.split(string.expandtabs(doc), '\n') -- cgit v0.12