summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-05-20 17:29:46 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-05-20 17:29:46 (GMT)
commit755f75eef813963009a82e066e952f24077d1017 (patch)
treeb2be7fa438ba4160f2dfe282d06de06340948067 /Lib/inspect.py
parent7b7ba540332b9a62be622035dc69b2a332ce6c68 (diff)
downloadcpython-755f75eef813963009a82e066e952f24077d1017.zip
cpython-755f75eef813963009a82e066e952f24077d1017.tar.gz
cpython-755f75eef813963009a82e066e952f24077d1017.tar.bz2
Use types.StringTypes instead of explicit (str, unicode) list
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py2
1 files changed, 1 insertions, 1 deletions
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')