Blame SOURCES/00001-pydocnogui.patch

ae2451
diff -up Python-2.7.3/Lib/pydoc.py.no_gui Python-2.7.3/Lib/pydoc.py
ae2451
--- Python-2.7.3/Lib/pydoc.py.no_gui	2012-04-09 19:07:31.000000000 -0400
ae2451
+++ Python-2.7.3/Lib/pydoc.py	2013-02-19 13:48:44.480054515 -0500
ae2451
@@ -19,9 +19,6 @@ of all available modules.
ae2451
 Run "pydoc -p <port>" to start an HTTP server on a given port on the
ae2451
 local machine to generate documentation web pages.
ae2451
 
ae2451
-For platforms without a command line, "pydoc -g" starts the HTTP server
ae2451
-and also pops up a little window for controlling it.
ae2451
-
ae2451
 Run "pydoc -w <name>" to write out the HTML documentation for a module
ae2451
 to a file named "<name>.html".
ae2451
 
ae2451
@@ -2290,9 +2287,6 @@ def cli():
ae2451
         writing = 0
ae2451
 
ae2451
         for opt, val in opts:
ae2451
-            if opt == '-g':
ae2451
-                gui()
ae2451
-                return
ae2451
             if opt == '-k':
ae2451
                 apropos(val)
ae2451
                 return
ae2451
@@ -2346,13 +2340,10 @@ def cli():
ae2451
 %s -p <port>
ae2451
     Start an HTTP server on the given port on the local machine.
ae2451
 
ae2451
-%s -g
ae2451
-    Pop up a graphical interface for finding and serving documentation.
ae2451
-
ae2451
 %s -w <name> ...
ae2451
     Write out the HTML documentation for a module to a file in the current
ae2451
     directory.  If <name> contains a '%s', it is treated as a filename; if
ae2451
     it names a directory, documentation is written for all the contents.
ae2451
-""" % (cmd, os.sep, cmd, cmd, cmd, cmd, os.sep)
ae2451
+""" % (cmd, os.sep, cmd, cmd, cmd, os.sep)
ae2451
 
ae2451
 if __name__ == '__main__': cli()