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
228b99e8
Commit
228b99e8
authored
Jul 01, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More idlelib cleanup inspired by pyflakes.
parent
9bc50561
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
Lib/idlelib/SearchEngine.py
Lib/idlelib/SearchEngine.py
+1
-1
Lib/idlelib/StackViewer.py
Lib/idlelib/StackViewer.py
+2
-2
Lib/idlelib/idle_test/test_textview.py
Lib/idlelib/idle_test/test_textview.py
+2
-4
No files found.
Lib/idlelib/SearchEngine.py
View file @
228b99e8
...
...
@@ -85,7 +85,7 @@ class SearchEngine:
except
re
.
error
as
what
:
args
=
what
.
args
msg
=
args
[
0
]
col
=
arg
[
1
]
if
len
(
args
)
>=
2
else
-
1
col
=
arg
s
[
1
]
if
len
(
args
)
>=
2
else
-
1
self
.
report_error
(
pat
,
msg
,
col
)
return
None
return
prog
...
...
Lib/idlelib/StackViewer.py
View file @
228b99e8
...
...
@@ -131,8 +131,8 @@ def _stack_viewer(parent):
root
.
geometry
(
"+%d+%d"
%
(
x
,
y
+
150
))
flist
=
PyShellFileList
(
root
)
try
:
# to obtain a traceback object
a
except
:
intentional_name_error
except
NameError
:
exc_type
,
exc_value
,
exc_tb
=
sys
.
exc_info
()
# inject stack trace to sys
...
...
Lib/idlelib/idle_test/test_textview.py
View file @
228b99e8
...
...
@@ -3,7 +3,7 @@
import
unittest
import
os
from
test.test_support
import
requires
from
Tkinter
import
Tk
,
Text
,
TclError
from
Tkinter
import
Tk
from
idlelib
import
textView
as
tv
from
idlelib.idle_test.mock_idle
import
Func
from
idlelib.idle_test.mock_tk
import
Mbox
...
...
@@ -93,6 +93,4 @@ class textviewTest(unittest.TestCase):
self
.
assertIsNone
(
view
)
if
__name__
==
'__main__'
:
unittest
.
main
(
verbosity
=
2
,
exit
=
False
)
from
idlelib.idle_test.htest
import
run
run
(
TextViewer
)
unittest
.
main
(
verbosity
=
2
)
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