diff options
author | Guido van Rossum <guido@python.org> | 2007-05-21 18:11:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-21 18:11:34 (GMT) |
commit | 813b0e5b6d53aff62ba1b3b69a8592e46687e093 (patch) | |
tree | c03dda2f735d80819695ee6499eaa4b11caa9f7a /Lib/inspect.py | |
parent | 2a857de62a8cfd12b494bd7f0fd4f94babc06c35 (diff) | |
download | cpython-813b0e5b6d53aff62ba1b3b69a8592e46687e093.zip cpython-813b0e5b6d53aff62ba1b3b69a8592e46687e093.tar.gz cpython-813b0e5b6d53aff62ba1b3b69a8592e46687e093.tar.bz2 |
Make test_inspect pass once again.
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index d2546f1..372013b 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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') |