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