da22ac345a9a60f7cb1817f25428adb050af8c37
[fedora-mingw.git] / python / Python-2.2.1-pydocnogui.patch
1 --- Python-2.2.1/Lib/pydoc.py.nogui     2002-07-08 18:32:47.000000000 -0400
2 +++ Python-2.2.1/Lib/pydoc.py   2002-07-08 18:33:37.000000000 -0400
3 @@ -18,9 +18,6 @@
4  Run "pydoc -p <port>" to start an HTTP server on a given port on the
5  local machine to generate documentation web pages.
6  
7 -For platforms without a command line, "pydoc -g" starts the HTTP server
8 -and also pops up a little window for controlling it.
9 -
10  Run "pydoc -w <name>" to write out the HTML documentation for a module
11  to a file named "<name>.html".
12  """
13 @@ -2043,9 +2040,6 @@
14          writing = 0
15  
16          for opt, val in opts:
17 -            if opt == '-g':
18 -                gui()
19 -                return
20              if opt == '-k':
21                  apropos(val)
22                  return
23 @@ -2099,13 +2093,10 @@
24  %s -p <port>
25      Start an HTTP server on the given port on the local machine.
26  
27 -%s -g
28 -    Pop up a graphical interface for finding and serving documentation.
29 -
30  %s -w <name> ...
31      Write out the HTML documentation for a module to a file in the current
32      directory.  If <name> contains a '%s', it is treated as a filename; if
33      it names a directory, documentation is written for all the contents.
34 -""" % (cmd, os.sep, cmd, cmd, cmd, cmd, os.sep)
35 +""" % (cmd, os.sep, cmd, cmd, cmd, os.sep)
36  
37   if __name__ == '__main__': cli()