fix [#26757] Python console: help() doesn't work anymore

also quiet some warnings & add docstrings to bpy module which was shaowing the GPL header in its help() message.
This commit is contained in:
2011-04-03 23:11:00 +00:00
parent 9decca10e0
commit 65b13c8089
3 changed files with 20 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ def add_scrollback(text, text_type):
def replace_help(namespace):
def _help(value):
def _help(*args):
# because of how the console works. we need our own help() pager func.
# replace the bold function because it adds crazy chars
import pydoc
@@ -42,7 +42,7 @@ def replace_help(namespace):
pydoc.Helper.getline = lambda self, prompt: None
pydoc.TextDoc.use_bold = lambda self, text: text
help(value)
pydoc.help(*args)
namespace["help"] = _help