mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge with stable
This commit is contained in:
@@ -1085,7 +1085,8 @@ class ClassDocumenter(ModuleLevelDocumenter):
|
|||||||
initdocstring = self.get_attr(
|
initdocstring = self.get_attr(
|
||||||
self.get_attr(self.object, '__init__', None), '__doc__')
|
self.get_attr(self.object, '__init__', None), '__doc__')
|
||||||
# for new-style classes, no __init__ means default __init__
|
# for new-style classes, no __init__ means default __init__
|
||||||
if initdocstring.strip() == object.__init__.__doc__.strip():
|
if (initdocstring == object.__init__.__doc__ or # for pypy
|
||||||
|
initdocstring.strip() == object.__init__.__doc__): #for !pypy
|
||||||
initdocstring = None
|
initdocstring = None
|
||||||
if initdocstring:
|
if initdocstring:
|
||||||
if content == 'init':
|
if content == 'init':
|
||||||
|
|||||||
Reference in New Issue
Block a user