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
b606d45f
Commit
b606d45f
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
e2d1e64a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
Lib/lib-tk/turtle.py
Lib/lib-tk/turtle.py
+1
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/lib-tk/turtle.py
View file @
b606d45f
...
...
@@ -2499,7 +2499,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/ACKS
View file @
b606d45f
...
...
@@ -235,6 +235,7 @@ Ingrid Cheung
Albert Chin-A-Young
Adal Chiriliuc
Matt Chisholm
Lita Cho
Anders Chrigström
Tom Christiansen
Renee Chu
...
...
Misc/NEWS
View file @
b606d45f
...
...
@@ -16,6 +16,9 @@ Library
- Issue #22017: Correct reference counting errror in the initialization of the
_warnings module.
- Issue #21868: Prevent turtle crash when undo buffer set to a value less
than one.
- Issue #21044: tarfile.open() now handles fileobj with an integer '
name
'
attribute. Based on patch by Martin Panter.
...
...
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