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
04ff0382
Kaydet (Commit)
04ff0382
authored
Tem 13, 2013
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18365: normalize whitespace
üst
21784da4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
mock_tk.py
Lib/idlelib/idle_test/mock_tk.py
+6
-6
test_text.py
Lib/idlelib/idle_test/test_text.py
+1
-2
No files found.
Lib/idlelib/idle_test/mock_tk.py
Dosyayı görüntüle @
04ff0382
...
...
@@ -210,7 +210,7 @@ class Text:
endline
,
endchar
=
startline
+
1
,
0
else
:
# do not delete terminal \n if index1 == 'insert'
return
return
else
:
endline
,
endchar
=
self
.
_decode
(
index2
,
-
1
)
# restricting end position to insert position excludes terminal \n
...
...
@@ -219,11 +219,11 @@ class Text:
self
.
data
[
startline
]
=
self
.
data
[
startline
][:
startchar
]
+
\
self
.
data
[
startline
][
endchar
:]
elif
startline
<
endline
:
self
.
data
[
startline
]
=
self
.
data
[
startline
][:
startchar
]
+
\
self
.
data
[
endline
][
endchar
:]
startline
+=
1
for
i
in
range
(
startline
,
endline
+
1
):
del
self
.
data
[
startline
]
self
.
data
[
startline
]
=
self
.
data
[
startline
][:
startchar
]
+
\
self
.
data
[
endline
][
endchar
:]
startline
+=
1
for
i
in
range
(
startline
,
endline
+
1
):
del
self
.
data
[
startline
]
def
compare
(
self
,
index1
,
op
,
index2
):
line1
,
char1
=
self
.
_decode
(
index1
)
...
...
Lib/idlelib/idle_test/test_text.py
Dosyayı görüntüle @
04ff0382
...
...
@@ -36,7 +36,7 @@ class TextTest(object):
self
.
assertEqual
(
index
(
dex
),
'1.0'
)
for
dex
in
'1.0 lineend'
,
'1.end'
,
'1.33'
:
self
.
assertEqual
(
index
(
dex
),
'1.5'
)
self
.
assertEqual
(
index
(
dex
),
'1.5'
)
for
dex
in
'end'
,
'33.44'
:
self
.
assertEqual
(
index
(
dex
),
'3.0'
)
...
...
@@ -225,4 +225,3 @@ class TkTextTest(TextTest, unittest.TestCase):
if
__name__
==
'__main__'
:
unittest
.
main
(
verbosity
=
2
,
exit
=
False
)
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