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
2733618f
Commit
2733618f
authored
May 14, 2015
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
idlelib: remove unused names and imports (one is a duplicate import).
parent
82796193
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
12 deletions
+5
-12
Lib/idlelib/GrepDialog.py
Lib/idlelib/GrepDialog.py
+0
-1
Lib/idlelib/IOBinding.py
Lib/idlelib/IOBinding.py
+2
-3
Lib/idlelib/PyParse.py
Lib/idlelib/PyParse.py
+0
-1
Lib/idlelib/RemoteDebugger.py
Lib/idlelib/RemoteDebugger.py
+0
-1
Lib/idlelib/ScriptBinding.py
Lib/idlelib/ScriptBinding.py
+1
-3
Lib/idlelib/SearchDialog.py
Lib/idlelib/SearchDialog.py
+1
-1
Lib/idlelib/TreeWidget.py
Lib/idlelib/TreeWidget.py
+1
-1
Lib/idlelib/configDialog.py
Lib/idlelib/configDialog.py
+0
-1
No files found.
Lib/idlelib/GrepDialog.py
View file @
2733618f
...
...
@@ -5,7 +5,6 @@ import sys
from
tkinter
import
StringVar
,
BooleanVar
,
Checkbutton
# for GrepDialog
from
tkinter
import
Tk
,
Text
,
Button
,
SEL
,
END
# for htest
from
idlelib
import
SearchEngine
import
itertools
from
idlelib.SearchDialogBase
import
SearchDialogBase
# Importing OutputWindow fails due to import loop
# EditorWindow -> GrepDialop -> OutputWindow -> EditorWindow
...
...
Lib/idlelib/IOBinding.py
View file @
2733618f
import
os
import
types
import
shlex
import
sys
import
codecs
...
...
@@ -525,7 +524,7 @@ class IOBinding:
if
self
.
editwin
.
flist
:
self
.
editwin
.
update_recent_files_list
(
filename
)
def
_io_binding
(
parent
):
def
_io_binding
(
parent
):
# htest #
root
=
Tk
()
root
.
title
(
"Test IOBinding"
)
width
,
height
,
x
,
y
=
list
(
map
(
int
,
re
.
split
(
'[x+]'
,
parent
.
geometry
())))
...
...
@@ -548,7 +547,7 @@ def _io_binding(parent):
text
.
pack
()
text
.
focus_set
()
editwin
=
MyEditWin
(
text
)
io
=
IOBinding
(
editwin
)
IOBinding
(
editwin
)
if
__name__
==
"__main__"
:
from
idlelib.idle_test.htest
import
run
...
...
Lib/idlelib/PyParse.py
View file @
2733618f
import
re
import
sys
from
collections
import
Mapping
from
functools
import
partial
# Reason last stmt is continued (or C_NONE if it's not).
(
C_NONE
,
C_BACKSLASH
,
C_STRING_FIRST_LINE
,
...
...
Lib/idlelib/RemoteDebugger.py
View file @
2733618f
...
...
@@ -21,7 +21,6 @@ barrier, in particular frame and traceback objects.
"""
import
types
from
idlelib
import
rpc
from
idlelib
import
Debugger
debugging
=
0
...
...
Lib/idlelib/ScriptBinding.py
View file @
2733618f
...
...
@@ -18,13 +18,11 @@ XXX GvR Redesign this interface (yet again) as follows:
"""
import
os
import
re
import
string
import
tabnanny
import
tokenize
import
tkinter.messagebox
as
tkMessageBox
from
idlelib.EditorWindow
import
EditorWindow
from
idlelib
import
PyShell
,
IOBinding
from
idlelib
import
PyShell
from
idlelib.configHandler
import
idleConf
from
idlelib
import
macosxSupport
...
...
Lib/idlelib/SearchDialog.py
View file @
2733618f
...
...
@@ -23,7 +23,7 @@ def find_selection(text):
class
SearchDialog
(
SearchDialogBase
):
def
create_widgets
(
self
):
f
=
SearchDialogBase
.
create_widgets
(
self
)
SearchDialogBase
.
create_widgets
(
self
)
self
.
make_button
(
"Find Next"
,
self
.
default_command
,
1
)
def
default_command
(
self
,
event
=
None
):
...
...
Lib/idlelib/TreeWidget.py
View file @
2733618f
...
...
@@ -245,7 +245,7 @@ class TreeNode:
else
:
self
.
edit_finish
()
try
:
label
=
self
.
label
self
.
label
except
AttributeError
:
# padding carefully selected (on Windows) to match Entry widget:
self
.
label
=
Label
(
self
.
canvas
,
text
=
text
,
bd
=
0
,
padx
=
2
,
pady
=
2
)
...
...
Lib/idlelib/configDialog.py
View file @
2733618f
...
...
@@ -16,7 +16,6 @@ import tkinter.font as tkFont
from
idlelib.configHandler
import
idleConf
from
idlelib.dynOptionMenuWidget
import
DynOptionMenu
from
idlelib.tabbedpages
import
TabbedPageSet
from
idlelib.keybindingDialog
import
GetKeysDialog
from
idlelib.configSectionNameDialog
import
GetCfgSectionNameDialog
from
idlelib.configHelpSourceEdit
import
GetHelpSourceDialog
...
...
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