diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2014-01-15 04:58:24 +0000 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2014-01-15 04:58:24 +0000 |
| commit | cc1d1723541cfee2977dc34aae8926996100992c (patch) | |
| tree | 41ebe2fad32f36e9acb44a417db446e81f581e01 /sphinx/ext | |
| parent | 849ffde23aa7d87f3315db5fd54f8655f0dba942 (diff) | |
| download | sphinx-cc1d1723541cfee2977dc34aae8926996100992c.tar.gz | |
Fix pypy test failure for b69b594 commit. refs #1337
Diffstat (limited to 'sphinx/ext')
| -rw-r--r-- | sphinx/ext/autodoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index 9d950a75..c454641b 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -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': |
