issue #3035: update PendingDeprecationWarning to DeprectionWarning, point deprecation in tkinter doc

This commit is contained in:
Andrew Svetlov 2012-03-31 14:55:55 +03:00
parent 78a0f208cc
commit 69c2ffa3f3
2 changed files with 25 additions and 16 deletions

View file

@ -2126,14 +2126,14 @@ class Button(Widget):
# Indices:
# XXX I don't like these -- take them away
def AtEnd():
warnings.warn("tkinter.AtEnd will be removed in 3.5",
PendingDeprecationWarning, stacklevel=2)
warnings.warn("tkinter.AtEnd will be removed in 3.4",
DeprecationWarning, stacklevel=2)
return 'end'
def AtInsert(*args):
warnings.warn("tkinter.AtInsert will be removed in 3.5",
PendingDeprecationWarning, stacklevel=2)
warnings.warn("tkinter.AtInsert will be removed in 3.4",
DeprecationWarning, stacklevel=2)
s = 'insert'
for a in args:
if a: s = s + (' ' + a)
@ -2141,20 +2141,20 @@ def AtInsert(*args):
def AtSelFirst():
warnings.warn("tkinter.AtSelFirst will be removed in 3.5",
PendingDeprecationWarning, stacklevel=2)
warnings.warn("tkinter.AtSelFirst will be removed in 3.4",
DeprecationWarning, stacklevel=2)
return 'sel.first'
def AtSelLast():
warnings.warn("tkinter.AtSelLast will be removed in 3.5",
PendingDeprecationWarning, stacklevel=2)
warnings.warn("tkinter.AtSelLast will be removed in 3.4",
DeprecationWarning, stacklevel=2)
return 'sel.last'
def At(x, y=None):
warnings.warn("tkinter.At will be removed in 3.5",
PendingDeprecationWarning, stacklevel=2)
warnings.warn("tkinter.At will be removed in 3.4",
DeprecationWarning, stacklevel=2)
if y is None:
return '@%r' % (x,)
else: