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
86b882f3
Commit
86b882f3
authored
Aug 14, 2009
by
Guilherme Polo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #3344: Replace itertools.count by enumerate.
parent
59584c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Lib/idlelib/EditorWindow.py
Lib/idlelib/EditorWindow.py
+2
-3
No files found.
Lib/idlelib/EditorWindow.py
View file @
86b882f3
...
@@ -2,7 +2,6 @@ import sys
...
@@ -2,7 +2,6 @@ import sys
import
os
import
os
import
re
import
re
import
imp
import
imp
from
itertools
import
count
from
Tkinter
import
*
from
Tkinter
import
*
import
tkSimpleDialog
import
tkSimpleDialog
import
tkMessageBox
import
tkMessageBox
...
@@ -779,8 +778,8 @@ class EditorWindow(object):
...
@@ -779,8 +778,8 @@ class EditorWindow(object):
for
instance
in
self
.
top
.
instance_dict
.
keys
():
for
instance
in
self
.
top
.
instance_dict
.
keys
():
menu
=
instance
.
recent_files_menu
menu
=
instance
.
recent_files_menu
menu
.
delete
(
1
,
END
)
# clear, and rebuild:
menu
.
delete
(
1
,
END
)
# clear, and rebuild:
for
i
,
file
in
zip
(
count
(),
rf_list
):
for
i
,
file
_name
in
enumerate
(
rf_list
):
file_name
=
file
[
0
:
-
1
]
# zap \n
file_name
=
file
_name
.
rstrip
()
# zap \n
# make unicode string to display non-ASCII chars correctly
# make unicode string to display non-ASCII chars correctly
ufile_name
=
self
.
_filename_to_unicode
(
file_name
)
ufile_name
=
self
.
_filename_to_unicode
(
file_name
)
callback
=
instance
.
__recent_file_callback
(
file_name
)
callback
=
instance
.
__recent_file_callback
(
file_name
)
...
...
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