diff options
author | Raymond Hettinger <python@rcn.com> | 2014-07-21 04:31:35 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-07-21 04:31:35 (GMT) |
commit | 569a7fa13a1a69b070e9aff9a5fdc065960e4db1 (patch) | |
tree | c28ab0c1eb856f40677928bfc02e0494f98424d8 /Lib | |
parent | 7e9522fadfa9dce4380dad0acd0586a0e8179dcb (diff) | |
parent | 854e76effaa272feed874c0e828ee679a3949dc2 (diff) | |
download | cpython-569a7fa13a1a69b070e9aff9a5fdc065960e4db1.zip cpython-569a7fa13a1a69b070e9aff9a5fdc065960e4db1.tar.gz cpython-569a7fa13a1a69b070e9aff9a5fdc065960e4db1.tar.bz2 |
merge
Diffstat (limited to 'Lib')
-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 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) |