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
9bb92235
Commit
9bb92235
authored
Jun 20, 2018
by
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
Committed by
Terry Jan Reedy
Jun 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
parent
9af18366
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
Lib/idlelib/editor.py
Lib/idlelib/editor.py
+2
-2
Lib/idlelib/idle_test/test_rstrip.py
Lib/idlelib/idle_test/test_rstrip.py
+2
-2
Lib/idlelib/rstrip.py
Lib/idlelib/rstrip.py
+1
-1
Misc/NEWS.d/next/IDLE/2018-06-20-12-40-54.bpo-33904.qm0eCu.rst
...NEWS.d/next/IDLE/2018-06-20-12-40-54.bpo-33904.qm0eCu.rst
+1
-0
No files found.
Lib/idlelib/editor.py
View file @
9bb92235
...
...
@@ -58,7 +58,7 @@ class EditorWindow(object):
from
idlelib.codecontext
import
CodeContext
from
idlelib.paragraph
import
FormatParagraph
from
idlelib.parenmatch
import
ParenMatch
from
idlelib.rstrip
import
Rstrip
Extension
from
idlelib.rstrip
import
Rstrip
from
idlelib.zoomheight
import
ZoomHeight
filesystemencoding
=
sys
.
getfilesystemencoding
()
# for file names
...
...
@@ -310,7 +310,7 @@ class EditorWindow(object):
scriptbinding
=
ScriptBinding
(
self
)
text
.
bind
(
"<<check-module>>"
,
scriptbinding
.
check_module_event
)
text
.
bind
(
"<<run-module>>"
,
scriptbinding
.
run_module_event
)
text
.
bind
(
"<<do-rstrip>>"
,
self
.
Rstrip
Extension
(
self
).
do_rstrip
)
text
.
bind
(
"<<do-rstrip>>"
,
self
.
Rstrip
(
self
).
do_rstrip
)
ctip
=
self
.
Calltip
(
self
)
text
.
bind
(
"<<try-open-calltip>>"
,
ctip
.
try_open_calltip_event
)
#refresh-calltip must come after paren-closed to work right
...
...
Lib/idlelib/idle_test/test_rstrip.py
View file @
9bb92235
...
...
@@ -9,7 +9,7 @@ class rstripTest(unittest.TestCase):
def
test_rstrip_line
(
self
):
editor
=
Editor
()
text
=
editor
.
text
do_rstrip
=
rstrip
.
Rstrip
Extension
(
editor
).
do_rstrip
do_rstrip
=
rstrip
.
Rstrip
(
editor
).
do_rstrip
do_rstrip
()
self
.
assertEqual
(
text
.
get
(
'1.0'
,
'insert'
),
''
)
...
...
@@ -27,7 +27,7 @@ class rstripTest(unittest.TestCase):
#from tkinter import Tk
#editor = Editor(root=Tk())
text
=
editor
.
text
do_rstrip
=
rstrip
.
Rstrip
Extension
(
editor
).
do_rstrip
do_rstrip
=
rstrip
.
Rstrip
(
editor
).
do_rstrip
original
=
(
"Line with an ending tab
\
n
"
...
...
Lib/idlelib/rstrip.py
View file @
9bb92235
'Provides "Strip trailing whitespace" under the "Format" menu.'
class
Rstrip
Extension
:
class
Rstrip
:
def
__init__
(
self
,
editwin
):
self
.
editwin
=
editwin
...
...
Misc/NEWS.d/next/IDLE/2018-06-20-12-40-54.bpo-33904.qm0eCu.rst
0 → 100644
View file @
9bb92235
IDLE: In rstrip, rename class RstripExtension as Rstrip
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