Show More
@@ -96,8 +96,8 b' try:' | |||||
96 | def sphinxify_docstring(docstring): |
|
96 | def sphinxify_docstring(docstring): | |
97 | with TemporaryDirectory() as dirname: |
|
97 | with TemporaryDirectory() as dirname: | |
98 | return { |
|
98 | return { | |
99 |
|
|
99 | "text/html": sphx.sphinxify(wrapped_docstring, dirname), | |
100 |
|
|
100 | "text/plain": docstring, | |
101 | } |
|
101 | } | |
102 |
|
102 | |||
103 | return sphinxify_docstring |
|
103 | return sphinxify_docstring | |
@@ -1675,9 +1675,11 b' class InteractiveShell(SingletonConfigurable):' | |||||
1675 | with self.builtin_trap: |
|
1675 | with self.builtin_trap: | |
1676 | info = self._object_find(oname) |
|
1676 | info = self._object_find(oname) | |
1677 | if info.found: |
|
1677 | if info.found: | |
1678 | docformat = ( |
|
1678 | docformat = ( | |
1679 |
sphinxify(self.object_inspect(oname)) |
|
1679 | sphinxify(self.object_inspect(oname)) | |
1680 | ) |
|
1680 | if self.sphinxify_docstring | |
|
1681 | else None | |||
|
1682 | ) | |||
1681 | return self.inspector._get_info( |
|
1683 | return self.inspector._get_info( | |
1682 | info.obj, |
|
1684 | info.obj, | |
1683 | oname, |
|
1685 | oname, |
General Comments 0
You need to be logged in to leave comments.
Login now