pydoc.pager does not promise to use $PAGER.

This commit is contained in:
Georg Brandl 2010-07-19 08:02:46 +00:00
parent 9cec307a11
commit 55353ca6dc
2 changed files with 4 additions and 5 deletions

View File

@ -207,10 +207,9 @@ by the local file.
Without argument, print the list of available commands. With a *command* as Without argument, print the list of available commands. With a *command* as
argument, print help about that command. ``help pdb`` displays the full argument, print help about that command. ``help pdb`` displays the full
documentation (the docstring of the :mod:`pdb` module); if the environment documentation (the docstring of the :mod:`pdb` module). Since the *command*
variable :envvar:`PAGER` is defined, the string is piped through that command argument must be an identifier, ``help exec`` must be entered to get help on
instead. Since the *command* argument must be an identifier, ``help exec`` the ``!`` command.
must be entered to get help on the ``!`` command.
.. pdbcommand:: w(here) .. pdbcommand:: w(here)

View File

@ -1123,7 +1123,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
print("""h(elp) print("""h(elp)
Without argument, print the list of available commands. Without argument, print the list of available commands.
With a command name as argument, print help about that command With a command name as argument, print help about that command
"help pdb" pipes the full documentation file to the $PAGER "help pdb" shows the full pdb documentation
"help exec" gives help on the ! command""", file=self.stdout) "help exec" gives help on the ! command""", file=self.stdout)
def help_where(self): def help_where(self):