mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
Fix typo in turtle deprecation warning and use warnings._deprecated (#91862)
This commit is contained in:
parent
5f9c0f5ddf
commit
341689cb85
|
@ -2863,10 +2863,10 @@ def settiltangle(self, angle):
|
|||
>>> 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):
|
||||
|
|
Loading…
Reference in a new issue