summaryrefslogtreecommitdiffstats
path: root/Lib/turtle.py
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2022-05-02 16:57:00 (GMT)
committerGitHub <noreply@github.com>2022-05-02 16:57:00 (GMT)
commit341689cb85c4ee4f58dc9f0f96ecc94ded8fd9d4 (patch)
treee3e89ae82cd3e6200cc15f51eac6363aa369c0b0 /Lib/turtle.py
parent5f9c0f5ddf441dedeb085b0d9f9c9488ca6bd44d (diff)
downloadcpython-341689cb85c4ee4f58dc9f0f96ecc94ded8fd9d4.zip
cpython-341689cb85c4ee4f58dc9f0f96ecc94ded8fd9d4.tar.gz
cpython-341689cb85c4ee4f58dc9f0f96ecc94ded8fd9d4.tar.bz2
Fix typo in turtle deprecation warning and use warnings._deprecated (#91862)
Diffstat (limited to 'Lib/turtle.py')
-rw-r--r--Lib/turtle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/turtle.py b/Lib/turtle.py
index d5e715e..a8876e7 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -2863,10 +2863,10 @@ class RawTurtle(TPen, TNavigator):
>>> turtle.stamp()
>>> turtle.fd(50)
"""
- warnings.warn("turtle.RawTurtle.settiltangle() is deprecated since "
- "Python 3.1 and scheduled for removal in Python 3.13."
- "Use tiltangle() instead.",
- DeprecationWarning)
+ warnings._deprecated("turtle.RawTurtle.settiltangle()",
+ "{name!r} is deprecated since Python 3.1 and scheduled "
+ "for removal in Python {remove}. Use tiltangle() instead.",
+ remove=(3, 13))
self.tiltangle(angle)
def tiltangle(self, angle=None):