diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-10 03:14:32 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-10 03:14:32 (GMT) |
commit | d5a0985265e373cc3c6b05622f77b71f21acb6e7 (patch) | |
tree | b45888cd85b85912e18a87e8adeba9c5b16539db /Lib/lib-tk | |
parent | 756bc0b7229f6a006af50d6817aebd2b185138d0 (diff) | |
download | cpython-d5a0985265e373cc3c6b05622f77b71f21acb6e7.zip cpython-d5a0985265e373cc3c6b05622f77b71f21acb6e7.tar.gz cpython-d5a0985265e373cc3c6b05622f77b71f21acb6e7.tar.bz2 |
The Canvas module has been deprecated for removal in 3.0.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r-- | Lib/lib-tk/Canvas.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/lib-tk/Canvas.py b/Lib/lib-tk/Canvas.py index 83d7bba..34464ab 100644 --- a/Lib/lib-tk/Canvas.py +++ b/Lib/lib-tk/Canvas.py @@ -3,6 +3,10 @@ # NOTE: This module was an experiment and is now obsolete. # 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 |