]> granicus.if.org Git - python/commitdiff
Rename pydoc.pyw to pydocgui.pyw: Since we changed Python to allow .pyw
authorTim Peters <tim.peters@gmail.com>
Sun, 5 Aug 2001 05:43:20 +0000 (05:43 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 5 Aug 2001 05:43:20 +0000 (05:43 +0000)
files to satisfy imports, pydoc.pyw was just importing itself!

PCbuild/python20.wse
Tools/scripts/pydoc.pyw [deleted file]
Tools/scripts/pydocgui.pyw [new file with mode: 0644]

index 6131986e545e37f32ced8efddd8dd7c7d1eadc67..3ec564eec077b644364c0ec498817b645b73f1cf 100644 (file)
@@ -2451,7 +2451,7 @@ end
 item: Create Shortcut
   Source=%MAINDIR%\pythonw.exe
   Destination=%GROUP%\Module Docs.lnk
-  Command Options="%MAINDIR%\Tools\Scripts\pydoc.pyw"
+  Command Options="%MAINDIR%\Tools\Scripts\pydocgui.pyw"
   Working Directory=%MAINDIR%
   Key Type=1536
   Flags=00000001
diff --git a/Tools/scripts/pydoc.pyw b/Tools/scripts/pydoc.pyw
deleted file mode 100755 (executable)
index 66992f9..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-import pydoc
-pydoc.gui()
diff --git a/Tools/scripts/pydocgui.pyw b/Tools/scripts/pydocgui.pyw
new file mode 100644 (file)
index 0000000..61a8b89
--- /dev/null
@@ -0,0 +1,5 @@
+# Note:  this file must not be named pydoc.pyw, lest it just end up
+# importing itself (Python began allowing import of .pyw files
+# between 2.2a1 and 2.2a2).
+import pydoc
+pydoc.gui()