diff options
author | Fedora Python maintainers <python-devel@lists.fedoraproject.org> | 2020-07-15 15:12:37 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2020-09-29 15:30:49 +0200 |
commit | 253b416452c37acd6381c501e343f00b87905d30 (patch) | |
tree | 9e4587cfbd3f406e7ebde32e736d25ffc486ec2b | |
parent | 17f5c1364ddfc64e442def6a3c884984879424cd (diff) | |
download | cpython-git-253b416452c37acd6381c501e343f00b87905d30.tar.gz |
00001-pydocnogui.patch
Removes the "-g" option from "pydoc", for some reason; I believe
(dmalcolm 2010-01-29) that this was introduced in this change:
- fix pydoc (#68082)
in 2.2.1-12 as a response to the -g option needing TkInter installed
(Red Hat Linux 8)
-rwxr-xr-x | Lib/pydoc.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 62cc262ccb..4ffc8f000e 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -20,9 +20,6 @@ Run "pydoc -p <port>" to start an HTTP server on a given port on the local machine to generate documentation web pages. Port number 0 can be used to get an arbitrary unused port. -For platforms without a command line, "pydoc -g" starts the HTTP server -and also pops up a little window for controlling it. - Run "pydoc -w <name>" to write out the HTML documentation for a module to a file named "<name>.html". @@ -2404,13 +2401,10 @@ def cli(): Start an HTTP server on the given port on the local machine. Port number 0 can be used to get an arbitrary unused port. -%s -g - Pop up a graphical interface for finding and serving documentation. - %s -w <name> ... Write out the HTML documentation for a module to a file in the current directory. If <name> contains a '%s', it is treated as a filename; if it names a directory, documentation is written for all the contents. -""" % (cmd, os.sep, cmd, cmd, cmd, cmd, os.sep) +""" % (cmd, os.sep, cmd, cmd, cmd, os.sep) if __name__ == '__main__': cli() |