Blame SOURCES/00001-pydocnogui.patch

f992f7
From cfe43d895a3cd9b053f6b4fbb2c419f2c5065257 Mon Sep 17 00:00:00 2001
f992f7
From: Tomas Orsava <torsava@redhat.com>
f992f7
Date: Tue, 10 Jan 2017 11:05:27 +0100
f992f7
Subject: [PATCH] Removes the "-g" option from "pydoc"
f992f7
f992f7
---
f992f7
 Lib/pydoc.py | 11 +----------
f992f7
 1 file changed, 1 insertion(+), 10 deletions(-)
f992f7
f992f7
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
f992f7
index b4b190f..183027d 100755
f992f7
--- a/Lib/pydoc.py
f992f7
+++ b/Lib/pydoc.py
f992f7
@@ -20,9 +20,6 @@ Run "pydoc -p <port>" to start an HTTP server on a given port on the
f992f7
 local machine to generate documentation web pages.  Port number 0 can be
f992f7
 used to get an arbitrary unused port.
23b3e9
 
23b3e9
-For platforms without a command line, "pydoc -g" starts the HTTP server
23b3e9
-and also pops up a little window for controlling it.
23b3e9
-
23b3e9
 Run "pydoc -w <name>" to write out the HTML documentation for a module
23b3e9
 to a file named "<name>.html".
23b3e9
 
f992f7
@@ -2341,9 +2338,6 @@ def cli():
23b3e9
         writing = 0
23b3e9
 
23b3e9
         for opt, val in opts:
23b3e9
-            if opt == '-g':
23b3e9
-                gui()
23b3e9
-                return
23b3e9
             if opt == '-k':
23b3e9
                 apropos(val)
23b3e9
                 return
f992f7
@@ -2398,13 +2392,10 @@ def cli():
f992f7
     Start an HTTP server on the given port on the local machine.  Port
f992f7
     number 0 can be used to get an arbitrary unused port.
23b3e9
 
23b3e9
-%s -g
23b3e9
-    Pop up a graphical interface for finding and serving documentation.
23b3e9
-
23b3e9
 %s -w <name> ...
23b3e9
     Write out the HTML documentation for a module to a file in the current
23b3e9
     directory.  If <name> contains a '%s', it is treated as a filename; if
23b3e9
     it names a directory, documentation is written for all the contents.
23b3e9
-""" % (cmd, os.sep, cmd, cmd, cmd, cmd, os.sep)
23b3e9
+""" % (cmd, os.sep, cmd, cmd, cmd, os.sep)
23b3e9
 
23b3e9
 if __name__ == '__main__': cli()
f992f7
-- 
f992f7
2.11.0
f992f7