mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Make test_inspect pass once again.
This commit is contained in:
parent
2a857de62a
commit
813b0e5b6d
2 changed files with 3 additions and 2 deletions
|
|
@ -313,7 +313,7 @@ def getdoc(object):
|
|||
doc = object.__doc__
|
||||
except AttributeError:
|
||||
return None
|
||||
if not isinstance(doc, types.StringTypes):
|
||||
if not isinstance(doc, basestring):
|
||||
return None
|
||||
try:
|
||||
lines = doc.expandtabs().split('\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue