From: Michael W. Hudson Date: Mon, 20 May 2002 17:29:46 +0000 (+0000) Subject: Use types.StringTypes instead of explicit (str, unicode) list X-Git-Tag: v2.3c1~5638 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=755f75eef813963009a82e066e952f24077d1017;p=thirdparty%2FPython%2Fcpython.git Use types.StringTypes instead of explicit (str, unicode) list --- diff --git a/Lib/inspect.py b/Lib/inspect.py index 38b93bf80ca8..2f9511a0eef1 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')