Show More
@@ -1781,9 +1781,12 b' class InteractiveShell(SingletonConfigurable):' | |||||
1781 | This function is meant to be called by pdef, pdoc & friends. |
|
1781 | This function is meant to be called by pdef, pdoc & friends. | |
1782 | """ |
|
1782 | """ | |
1783 | info: OInfo = self._object_find(oname, namespaces) |
|
1783 | info: OInfo = self._object_find(oname, namespaces) | |
1784 | docformat = ( |
|
1784 | if self.sphinxify_docstring: | |
1785 | sphinxify(self.object_inspect(oname)) if self.sphinxify_docstring else None |
|
1785 | if sphinxify is None: | |
1786 | ) |
|
1786 | raise ImportError("Module ``docrepr`` required but missing") | |
|
1787 | docformat = sphinxify(self.object_inspect(oname)) | |||
|
1788 | else: | |||
|
1789 | docformat = None | |||
1787 | if info.found or hasattr(info.parent, oinspect.HOOK_NAME): |
|
1790 | if info.found or hasattr(info.parent, oinspect.HOOK_NAME): | |
1788 | pmethod = getattr(self.inspector, meth) |
|
1791 | pmethod = getattr(self.inspector, meth) | |
1789 | # TODO: only apply format_screen to the plain/text repr of the mime |
|
1792 | # TODO: only apply format_screen to the plain/text repr of the mime |
General Comments 0
You need to be logged in to leave comments.
Login now