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
dfd36184
Kaydet (Commit)
dfd36184
authored
Nis 02, 2010
tarafından
Florent Xicluna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#7092: silence some py3k warnings
üst
a7f242fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
EditorWindow.py
Lib/idlelib/EditorWindow.py
+1
-1
HyperParser.py
Lib/idlelib/HyperParser.py
+1
-1
test_functions.py
Lib/lib-tk/test/test_ttk/test_functions.py
+2
-2
test_bz2.py
Lib/test/test_bz2.py
+2
-2
No files found.
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
dfd36184
...
...
@@ -1194,7 +1194,7 @@ class EditorWindow(object):
if
not
self
.
context_use_ps1
:
for
context
in
self
.
num_context_lines
:
startat
=
max
(
lno
-
context
,
1
)
startatindex
=
`startat`
+
".0"
startatindex
=
repr
(
startat
)
+
".0"
rawtext
=
text
.
get
(
startatindex
,
"insert"
)
y
.
set_str
(
rawtext
)
bod
=
y
.
find_good_parse_start
(
...
...
Lib/idlelib/HyperParser.py
Dosyayı görüntüle @
dfd36184
...
...
@@ -31,7 +31,7 @@ class HyperParser:
if
not
editwin
.
context_use_ps1
:
for
context
in
editwin
.
num_context_lines
:
startat
=
max
(
lno
-
context
,
1
)
startatindex
=
`startat`
+
".0"
startatindex
=
repr
(
startat
)
+
".0"
stopatindex
=
"
%
d.end"
%
lno
# We add the newline because PyParse requires a newline at end.
# We add a space so that index won't be at end of line, so that
...
...
Lib/lib-tk/test/test_ttk/test_functions.py
Dosyayı görüntüle @
dfd36184
...
...
@@ -72,11 +72,11 @@ class InternalFunctionsTest(unittest.TestCase):
{
'-option'
:
'{one two} three'
})
# ignore an option
amount_opts
=
len
(
ttk
.
_format_optdict
(
opts
,
ignore
=
(
u'á'
)))
/
2
amount_opts
=
len
(
ttk
.
_format_optdict
(
opts
,
ignore
=
(
u'á'
)))
/
/
2
self
.
assertEqual
(
amount_opts
,
len
(
opts
)
-
1
)
# ignore non-existing options
amount_opts
=
len
(
ttk
.
_format_optdict
(
opts
,
ignore
=
(
u'á'
,
'b'
)))
/
2
amount_opts
=
len
(
ttk
.
_format_optdict
(
opts
,
ignore
=
(
u'á'
,
'b'
)))
/
/
2
self
.
assertEqual
(
amount_opts
,
len
(
opts
)
-
1
)
# ignore every option
...
...
Lib/test/test_bz2.py
Dosyayı görüntüle @
dfd36184
...
...
@@ -301,11 +301,11 @@ class BZ2FileTest(BaseTest):
self
.
fail
(
"__enter__ on a closed file didn't raise an exception"
)
try
:
with
BZ2File
(
self
.
filename
,
"wb"
)
as
f
:
1
/
0
1
//
0
except
ZeroDivisionError
:
pass
else
:
self
.
fail
(
"1
/
0 didn't raise an exception"
)
self
.
fail
(
"1
//
0 didn't raise an exception"
)
def
testThreading
(
self
):
# Using a BZ2File from several threads doesn't deadlock (issue #7205).
...
...
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