mirror of https://github.com/python/cpython.git
The Canvas module has been deprecated for removal in 3.0.
This commit is contained in:
parent
756bc0b722
commit
d5a0985265
|
@ -3,6 +3,10 @@
|
||||||
# NOTE: This module was an experiment and is now obsolete.
|
# NOTE: This module was an experiment and is now obsolete.
|
||||||
# It's best to use the Tkinter.Canvas class directly.
|
# It's best to use the Tkinter.Canvas class directly.
|
||||||
|
|
||||||
|
from warnings import warnpy3k
|
||||||
|
warnpy3k("the Canvas module has been removed in Python 3.0", stacklevel=2)
|
||||||
|
del warnpy3k
|
||||||
|
|
||||||
from Tkinter import Canvas, _cnfmerge, _flatten
|
from Tkinter import Canvas, _cnfmerge, _flatten
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,8 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
|
all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
|
||||||
'Bastion', 'compiler')
|
'Bastion', 'compiler')
|
||||||
inclusive_platforms = {'irix':('pure',)}
|
inclusive_platforms = {'irix':('pure',)}
|
||||||
optional_modules = ('bsddb185',)
|
# XXX Don't know if lib-tk is only installed if _tkinter is built.
|
||||||
|
optional_modules = ('bsddb185', 'Canvas')
|
||||||
|
|
||||||
def check_removal(self, module_name, optional=False):
|
def check_removal(self, module_name, optional=False):
|
||||||
"""Make sure the specified module, when imported, raises a
|
"""Make sure the specified module, when imported, raises a
|
||||||
|
|
|
@ -23,6 +23,8 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- The Canvas module has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The compiler package has been deprecated for removal in Python 3.0.
|
- The compiler package has been deprecated for removal in Python 3.0.
|
||||||
|
|
||||||
- The Bastion and rexec modules have been deprecated for removal in Python 3.0.
|
- The Bastion and rexec modules have been deprecated for removal in Python 3.0.
|
||||||
|
|
Loading…
Reference in New Issue