X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2FPython-2.2.1-pydocnogui.patch;fp=python%2FPython-2.2.1-pydocnogui.patch;h=da22ac345a9a60f7cb1817f25428adb050af8c37;hb=63a2fa13b135c765210e7331113a9bcd99949b3b;hp=0000000000000000000000000000000000000000;hpb=bce5b966788b7d38e7235291e155272f1dc42d6a;p=fedora-mingw.git diff --git a/python/Python-2.2.1-pydocnogui.patch b/python/Python-2.2.1-pydocnogui.patch new file mode 100644 index 0000000..da22ac3 --- /dev/null +++ b/python/Python-2.2.1-pydocnogui.patch @@ -0,0 +1,37 @@ +--- Python-2.2.1/Lib/pydoc.py.nogui 2002-07-08 18:32:47.000000000 -0400 ++++ Python-2.2.1/Lib/pydoc.py 2002-07-08 18:33:37.000000000 -0400 +@@ -18,9 +18,6 @@ + Run "pydoc -p " to start an HTTP server on a given port on the + local machine to generate documentation web pages. + +-For platforms without a command line, "pydoc -g" starts the HTTP server +-and also pops up a little window for controlling it. +- + Run "pydoc -w " to write out the HTML documentation for a module + to a file named ".html". + """ +@@ -2043,9 +2040,6 @@ + writing = 0 + + for opt, val in opts: +- if opt == '-g': +- gui() +- return + if opt == '-k': + apropos(val) + return +@@ -2099,13 +2093,10 @@ + %s -p + Start an HTTP server on the given port on the local machine. + +-%s -g +- Pop up a graphical interface for finding and serving documentation. +- + %s -w ... + Write out the HTML documentation for a module to a file in the current + directory. If contains a '%s', it is treated as a filename; if + it names a directory, documentation is written for all the contents. +-""" % (cmd, os.sep, cmd, cmd, cmd, cmd, os.sep) ++""" % (cmd, os.sep, cmd, cmd, cmd, os.sep) + + if __name__ == '__main__': cli()