##// END OF EJS Templates
Use inspect.getdoc when populating _builtin_type_docstrings...
immerrr -
Show More
@@ -45,8 +45,8 b' from IPython.utils.py3compat import cast_unicode, string_types, PY3'
45 _func_call_docstring = types.FunctionType.__call__.__doc__
45 _func_call_docstring = types.FunctionType.__call__.__doc__
46 _object_init_docstring = object.__init__.__doc__
46 _object_init_docstring = object.__init__.__doc__
47 _builtin_type_docstrings = {
47 _builtin_type_docstrings = {
48 t.__doc__ for t in (types.ModuleType, types.MethodType, types.FunctionType,
48 inspect.getdoc(t) for t in (types.ModuleType, types.MethodType,
49 property)
49 types.FunctionType, property)
50 }
50 }
51
51
52 _builtin_func_type = type(all)
52 _builtin_func_type = type(all)
General Comments 0
You need to be logged in to leave comments. Login now