[3.13] Fix `print` usage in `turtle` doctests (GH-122940) (#122977)

Fix `print` usage in `turtle` doctests (GH-122940)
(cherry picked from commit 901d94992e)

Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2024-08-13 19:03:36 +02:00 committed by GitHub
parent 7db7fcc0ef
commit 4aa0e795a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1718,7 +1718,7 @@ class TNavigator(object):
>>> reset()
>>> turtle.left(60)
>>> turtle.forward(100)
>>> print turtle.xcor()
>>> print(turtle.xcor())
50.0
"""
return self._position[0]
@ -1732,7 +1732,7 @@ class TNavigator(object):
>>> reset()
>>> turtle.left(60)
>>> turtle.forward(100)
>>> print turtle.ycor()
>>> print(turtle.ycor())
86.6025403784
"""
return self._position[1]
@ -2335,7 +2335,7 @@ class TPen(object):
Example (for a Turtle instance named turtle):
>>> turtle.hideturtle()
>>> print turtle.isvisible():
>>> print(turtle.isvisible())
False
"""
return self._shown