Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45e5e72

Browse files
committed
Rename pydoc.pyw to pydocgui.pyw: Since we changed Python to allow .pyw
files to satisfy imports, pydoc.pyw was just importing itself!
1 parent b39fa0e commit 45e5e72

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

PCbuild/python20.wse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ end
24512451
item: Create Shortcut
24522452
Source=%MAINDIR%\pythonw.exe
24532453
Destination=%GROUP%\Module Docs.lnk
2454-
Command Options="%MAINDIR%\Tools\Scripts\pydoc.pyw"
2454+
Command Options="%MAINDIR%\Tools\Scripts\pydocgui.pyw"
24552455
Working Directory=%MAINDIR%
24562456
Key Type=1536
24572457
Flags=00000001

Tools/scripts/pydoc.pyw

Lines changed: 0 additions & 2 deletions
This file was deleted.

Tools/scripts/pydocgui.pyw

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Note: this file must not be named pydoc.pyw, lest it just end up
2+
# importing itself (Python began allowing import of .pyw files
3+
# between 2.2a1 and 2.2a2).
4+
import pydoc
5+
pydoc.gui()

0 commit comments

Comments
 (0)