commit | d5a0985265e373cc3c6b05622f77b71f21acb6e7 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Sat May 10 03:14:32 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Sat May 10 03:14:32 2008 +0000 |
tree | b45888cd85b85912e18a87e8adeba9c5b16539db | |
parent | 756bc0b7229f6a006af50d6817aebd2b185138d0 [diff] [blame] |
The Canvas module has been deprecated for removal in 3.0.
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