mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
Merge 3.2
This commit is contained in:
commit
aabbda5354
27 changed files with 51 additions and 54 deletions
|
@ -769,7 +769,7 @@ class HTMLDoc(Doc):
|
|||
push(msg)
|
||||
for name, kind, homecls, value in ok:
|
||||
base = self.docother(getattr(object, name), name, mod)
|
||||
if hasattr(value, '__call__') or inspect.isdatadescriptor(value):
|
||||
if callable(value) or inspect.isdatadescriptor(value):
|
||||
doc = getattr(value, "__doc__", None)
|
||||
else:
|
||||
doc = None
|
||||
|
@ -1196,7 +1196,7 @@ location listed above.
|
|||
hr.maybe()
|
||||
push(msg)
|
||||
for name, kind, homecls, value in ok:
|
||||
if hasattr(value, '__call__') or inspect.isdatadescriptor(value):
|
||||
if callable(value) or inspect.isdatadescriptor(value):
|
||||
doc = getdoc(value)
|
||||
else:
|
||||
doc = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue