Skip to content

Commit b6dfddd

Browse files
committed
Fix trailing whitespace.
1 parent 5e17663 commit b6dfddd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/turtle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,7 +2717,7 @@ def _cc(self, args):
27172717
if not ((0 <= r <= 255) and (0 <= g <= 255) and (0 <= b <= 255)):
27182718
raise TurtleGraphicsError("bad color sequence: %s" % str(args))
27192719
return "#%02x%02x%02x" % (r, g, b)
2720-
2720+
27212721
def teleport(self, x=None, y=None, *, fill_gap: bool = False) -> None:
27222722
"""Instantly move turtle to an absolute position.
27232723
@@ -2729,14 +2729,14 @@ def teleport(self, x=None, y=None, *, fill_gap: bool = False) -> None:
27292729
call: teleport(x, y) # two coordinates
27302730
--or: teleport(x) # teleport to x position, keeping y as is
27312731
--or: teleport(y=y) # teleport to y position, keeping x as is
2732-
--or: teleport(x, y, fill_gap=True)
2732+
--or: teleport(x, y, fill_gap=True)
27332733
# teleport but fill the gap in between
27342734
27352735
Move turtle to an absolute position. Unlike goto(x, y), a line will not
27362736
be drawn. The turtle's orientation does not change. If currently
27372737
filling, the polygon(s) teleported from will be filled after leaving,
27382738
and filling will begin again after teleporting. This can be disabled
2739-
with fill_gap=True, which makes the imaginary line traveled during
2739+
with fill_gap=True, which makes the imaginary line traveled during
27402740
teleporting act as a fill barrier like in goto(x, y).
27412741
27422742
Example (for a Turtle instance named turtle):
@@ -2764,7 +2764,7 @@ def teleport(self, x=None, y=None, *, fill_gap: bool = False) -> None:
27642764
self._position = Vec2D(new_x, new_y)
27652765
self.pen(pendown=pendown)
27662766
if was_filling and not fill_gap:
2767-
self.begin_fill()
2767+
self.begin_fill()
27682768

27692769
def clone(self):
27702770
"""Create and return a clone of the turtle.

0 commit comments

Comments
 (0)