[Python-checkins] cpython (merge 3.4 -> default): merge

raymond.hettinger python-checkins at python.org
Mon Jul 21 06:31:45 CEST 2014


http://hg.python.org/cpython/rev/6fcdeea47cea
changeset:   91741:6fcdeea47cea
parent:      91738:4d0eec3139f7
parent:      91740:02b25ec13c94
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Jul 20 21:31:35 2014 -0700
summary:
  merge

files:
  Lib/turtle.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/turtle.py b/Lib/turtle.py
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -2594,7 +2594,7 @@
         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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list