Commit 2e733c96 authored by Alexander Belopolsky's avatar Alexander Belopolsky

Issue #9118: help(None) will now return NoneType doc instead of

starting interactive help.
parent 766f5d9d
...@@ -1705,8 +1705,9 @@ class Helper: ...@@ -1705,8 +1705,9 @@ class Helper:
return '' return ''
return '<pydoc.Helper instance>' return '<pydoc.Helper instance>'
def __call__(self, request=None): _GoInteractive = object()
if request is not None: def __call__(self, request=_GoInteractive):
if request is not self._GoInteractive:
self.help(request) self.help(request)
else: else:
self.intro() self.intro()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment