summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/ttk.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-09-24 11:34:09 (GMT)
committerGitHub <noreply@github.com>2017-09-24 11:34:09 (GMT)
commit2fad10235460ac394cc8b869c41f47aba3d63594 (patch)
tree28a55ca103201a0b6b753c0d1724708ca1f34d32 /Lib/tkinter/ttk.py
parentc247caf33f6e6000d828db4762d1cb12edf3cd57 (diff)
downloadcpython-2fad10235460ac394cc8b869c41f47aba3d63594.zip
cpython-2fad10235460ac394cc8b869c41f47aba3d63594.tar.gz
cpython-2fad10235460ac394cc8b869c41f47aba3d63594.tar.bz2
bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). (#3667)
Defer removing old behavior to 3.8. Document new feature of selection_set() and friends.
Diffstat (limited to 'Lib/tkinter/ttk.py')
-rw-r--r--Lib/tkinter/ttk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/ttk.py b/Lib/tkinter/ttk.py
index e1a965e..05c7364 100644
--- a/Lib/tkinter/ttk.py
+++ b/Lib/tkinter/ttk.py
@@ -1404,13 +1404,13 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
import warnings
warnings.warn(
"The selop=None argument of selection() is deprecated "
- "and will be removed in Python 3.7",
+ "and will be removed in Python 3.8",
DeprecationWarning, 3)
elif selop in ('set', 'add', 'remove', 'toggle'):
import warnings
warnings.warn(
"The selop argument of selection() is deprecated "
- "and will be removed in Python 3.7, "
+ "and will be removed in Python 3.8, "
"use selection_%s() instead" % (selop,),
DeprecationWarning, 3)
else: