diff options
author | Raymond Hettinger <python@rcn.com> | 2014-07-20 21:31:35 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-07-20 21:31:35 -0700 |
commit | 569a7fa13a1a69b070e9aff9a5fdc065960e4db1 (patch) | |
tree | c28ab0c1eb856f40677928bfc02e0494f98424d8 | |
parent | 7e9522fadfa9dce4380dad0acd0586a0e8179dcb (diff) | |
parent | 854e76effaa272feed874c0e828ee679a3949dc2 (diff) | |
download | cpython-git-569a7fa13a1a69b070e9aff9a5fdc065960e4db1.tar.gz |
merge
-rw-r--r-- | Lib/turtle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/turtle.py b/Lib/turtle.py index 465d6e065d..c9e88d9dd1 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) |