From 253b416452c37acd6381c501e343f00b87905d30 Mon Sep 17 00:00:00 2001 From: Fedora Python maintainers Date: Wed, 15 Jul 2020 15:12:37 +0200 Subject: 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) --- Lib/pydoc.py | 8 +------- 1 file changed, 1 insertion(+), 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 " 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 " to write out the HTML documentation for a module to a file named ".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 ... Write out the HTML documentation for a module to a file in the current directory. If 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() -- cgit v1.2.1