Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
854e76ef
Commit
854e76ef
authored
Jul 20, 2014
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21868: Prevent turtle crash due to invalid undo buffer size.
parent
01963e6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/turtle.py
Lib/turtle.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/turtle.py
View file @
854e76ef
...
...
@@ -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
)
...
...
Misc/NEWS
View file @
854e76ef
...
...
@@ -30,6 +30,8 @@ Library
- Issue #21044: tarfile.open() now handles fileobj with an integer '
name
'
attribute. Based on patch by Martin Panter.
- Issue #21867: Prevent turtle crash due to invalid undo buffer size.
- Issue #19076: Don'
t
pass
the
redundant
'file'
argument
to
self
.
error
().
-
Issue
#
21942
:
Fixed
source
file
viewing
in
pydoc
's server mode on Windows.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment