mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
merge
This commit is contained in:
commit
569a7fa13a
1 changed files with 1 additions and 1 deletions
|
@ -2594,7 +2594,7 @@ class RawTurtle(TPen, TNavigator):
|
|||
Example (for a Turtle instance named turtle):
|
||||
>>> turtle.setundobuffer(42)
|
||||
"""
|
||||
if size is None:
|
||||
if size is None or size <= 0:
|
||||
self.undobuffer = None
|
||||
else:
|
||||
self.undobuffer = Tbuffer(size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue