Blame SOURCES/00001-pydocnogui.patch

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