summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-07-21 04:31:35 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-07-21 04:31:35 (GMT)
commit569a7fa13a1a69b070e9aff9a5fdc065960e4db1 (patch)
treec28ab0c1eb856f40677928bfc02e0494f98424d8 /Lib
parent7e9522fadfa9dce4380dad0acd0586a0e8179dcb (diff)
parent854e76effaa272feed874c0e828ee679a3949dc2 (diff)
downloadcpython-569a7fa13a1a69b070e9aff9a5fdc065960e4db1.zip
cpython-569a7fa13a1a69b070e9aff9a5fdc065960e4db1.tar.gz
cpython-569a7fa13a1a69b070e9aff9a5fdc065960e4db1.tar.bz2
merge
Diffstat (limited to 'Lib')
-rw-r--r--Lib/turtle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/turtle.py b/Lib/turtle.py
index 465d6e0..c9e88d9 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -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)