mirror of https://github.com/python/cpython
Fix typo in turtle deprecation warning and use warnings._deprecated (#91862)
This commit is contained in:
parent
5f9c0f5ddf
commit
341689cb85
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue