Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
9bb92235
Kaydet (Commit)
9bb92235
authored
Haz 20, 2018
tarafından
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
Kaydeden (comit)
Terry Jan Reedy
Haz 20, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33904: In IDLE's rstrip, rename class RstripExtension as Rstrip (GH-7811)
üst
9af18366
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
editor.py
Lib/idlelib/editor.py
+2
-2
test_rstrip.py
Lib/idlelib/idle_test/test_rstrip.py
+2
-2
rstrip.py
Lib/idlelib/rstrip.py
+1
-1
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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