mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix pypy test failure for b69b594 commit. refs #1337
This commit is contained in:
parent
78b5d9aac2
commit
5721370438
@ -1085,7 +1085,8 @@ class ClassDocumenter(ModuleLevelDocumenter):
|
||||
initdocstring = self.get_attr(
|
||||
self.get_attr(self.object, '__init__', None), '__doc__')
|
||||
# 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
|
||||
if initdocstring:
|
||||
if content == 'init':
|
||||
|
Loading…
Reference in New Issue
Block a user