@@ -2717,7 +2717,7 @@ def _cc(self, args):
2717
2717
if not ((0 <= r <= 255 ) and (0 <= g <= 255 ) and (0 <= b <= 255 )):
2718
2718
raise TurtleGraphicsError ("bad color sequence: %s" % str (args ))
2719
2719
return "#%02x%02x%02x" % (r , g , b )
2720
-
2720
+
2721
2721
def teleport (self , x = None , y = None , * , fill_gap : bool = False ) -> None :
2722
2722
"""Instantly move turtle to an absolute position.
2723
2723
@@ -2729,14 +2729,14 @@ def teleport(self, x=None, y=None, *, fill_gap: bool = False) -> None:
2729
2729
call: teleport(x, y) # two coordinates
2730
2730
--or: teleport(x) # teleport to x position, keeping y as is
2731
2731
--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)
2733
2733
# teleport but fill the gap in between
2734
2734
2735
2735
Move turtle to an absolute position. Unlike goto(x, y), a line will not
2736
2736
be drawn. The turtle's orientation does not change. If currently
2737
2737
filling, the polygon(s) teleported from will be filled after leaving,
2738
2738
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
2740
2740
teleporting act as a fill barrier like in goto(x, y).
2741
2741
2742
2742
Example (for a Turtle instance named turtle):
@@ -2764,7 +2764,7 @@ def teleport(self, x=None, y=None, *, fill_gap: bool = False) -> None:
2764
2764
self ._position = Vec2D (new_x , new_y )
2765
2765
self .pen (pendown = pendown )
2766
2766
if was_filling and not fill_gap :
2767
- self .begin_fill ()
2767
+ self .begin_fill ()
2768
2768
2769
2769
def clone (self ):
2770
2770
"""Create and return a clone of the turtle.
0 commit comments