mirror of
https://github.com/python/cpython.git
synced 2025-09-16 13:47:31 +00:00
Tkinter rename, step 2: fix imports and add stub modules.
This commit is contained in:
parent
bbc57d73a0
commit
ad9afeb8f0
53 changed files with 206 additions and 85 deletions
8
Lib/lib-tk/Tkconstants.py
Normal file
8
Lib/lib-tk/Tkconstants.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import sys
|
||||
from warnings import warnpy3k
|
||||
|
||||
warnpy3k("the Tkconstants module has been renamed "
|
||||
"to 'tkinter.constants' in Python 3.0", stacklevel=2)
|
||||
|
||||
import tkinter.constants
|
||||
sys.modules[__name__] = tkinter.constants
|
Loading…
Add table
Add a link
Reference in a new issue