Rename pydoc.pyw to pydocgui.pyw: Since we changed Python to allow .pyw

files to satisfy imports, pydoc.pyw was just importing itself!
This commit is contained in:
Tim Peters 2001-08-05 05:43:20 +00:00
parent b39fa0e0fa
commit 45e5e72eb8
3 changed files with 6 additions and 3 deletions

View 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

View File

@ -1,2 +0,0 @@
import pydoc
pydoc.gui()

View File

@ -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()