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
6578dc92
Kaydet (Commit)
6578dc92
authored
Ara 24, 2002
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
75bfd058
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
11 deletions
+10
-11
_compat21.py
Lib/email/_compat21.py
+1
-1
__init__.py
Lib/encodings/__init__.py
+1
-1
test_datetime.py
Lib/test/test_datetime.py
+1
-1
test_descr.py
Lib/test/test_descr.py
+5
-5
test_macpath.py
Lib/test/test_macpath.py
+0
-1
test_ntpath.py
Lib/test/test_ntpath.py
+1
-1
test_shelve.py
Lib/test/test_shelve.py
+1
-1
No files found.
Lib/email/_compat21.py
Dosyayı görüntüle @
6578dc92
...
...
@@ -31,7 +31,7 @@ def _floordiv(i, j):
def
_isstring
(
obj
):
return
isinstance
(
obj
,
StringType
)
or
isinstance
(
obj
,
UnicodeType
)
return
isinstance
(
obj
,
StringType
)
or
isinstance
(
obj
,
UnicodeType
)
...
...
Lib/encodings/__init__.py
Dosyayı görüntüle @
6578dc92
...
...
@@ -46,7 +46,7 @@ def normalize_encoding(encoding):
characters except the dot used for Python package names are
collapsed and replaced with a single underscore, e.g. ' -;#'
becomes '_'.
"""
return
'_'
.
join
(
_norm_encoding_RE
.
split
(
encoding
))
...
...
Lib/test/test_datetime.py
Dosyayı görüntüle @
6578dc92
...
...
@@ -2258,7 +2258,7 @@ class TestDateTimeTZ(TestDateTime, TZInfoBase):
cls
=
self
.
theclass
datestr
=
'0001-02-03'
for
ofs
in
None
,
zero
,
plus
,
minus
,
unknown
:
for
us
in
0
,
987001
:
for
us
in
0
,
987001
:
d
=
cls
(
1
,
2
,
3
,
4
,
5
,
59
,
us
,
tzinfo
=
ofs
)
timestr
=
'04:05:59'
+
(
us
and
'.987001'
or
''
)
ofsstr
=
ofs
is
not
None
and
d
.
tzname
()
or
''
...
...
Lib/test/test_descr.py
Dosyayı görüntüle @
6578dc92
...
...
@@ -3447,7 +3447,7 @@ def test_mutable_bases():
if
attr
==
'a'
:
return
2
else
:
return
super
(
C2
,
self
)
.
__getattribute__
(
attr
)
return
super
(
C2
,
self
)
.
__getattribute__
(
attr
)
def
meth
(
self
):
return
1
class
D
(
C
):
...
...
@@ -3576,7 +3576,7 @@ def test_mutable_bases_with_failing_mro():
# Immediate subclasses have their mro's adjusted in alphabetical
# order, so E's will get adjusted before adjusting F's fails. We
# check here that E's gets restored.
E_mro_before
=
E
.
__mro__
D_mro_before
=
D
.
__mro__
...
...
@@ -3610,20 +3610,20 @@ def test_mutable_bases_catch_mro_conflict():
pass
else
:
raise
TestFailed
,
"didn't catch MRO conflict"
def
mutable_names
():
class
C
(
object
):
pass
# C.__module__ could be 'test_descr' or '__main__'
mod
=
C
.
__module__
C
.
__name__
=
'D'
vereq
((
C
.
__module__
,
C
.
__name__
),
(
mod
,
'D'
))
C
.
__name__
=
'D.E'
vereq
((
C
.
__module__
,
C
.
__name__
),
(
mod
,
'D.E'
))
def
test_main
():
do_this_first
()
...
...
Lib/test/test_macpath.py
Dosyayı görüntüle @
6578dc92
...
...
@@ -61,4 +61,3 @@ def test_main():
if
__name__
==
"__main__"
:
test_main
()
Lib/test/test_ntpath.py
Dosyayı görüntüle @
6578dc92
...
...
@@ -15,7 +15,7 @@ def tester(fn, wantResult):
print
" returned: "
+
str
(
gotResult
)
print
""
errors
=
errors
+
1
tester
(
'ntpath.splitext("foo.ext")'
,
(
'foo'
,
'.ext'
))
tester
(
'ntpath.splitext("/foo/foo.ext")'
,
(
'/foo/foo'
,
'.ext'
))
tester
(
'ntpath.splitext(".ext")'
,
(
''
,
'.ext'
))
...
...
Lib/test/test_shelve.py
Dosyayı görüntüle @
6578dc92
...
...
@@ -7,7 +7,7 @@ from test import test_support
class
TestCase
(
unittest
.
TestCase
):
fn
=
"shelftemp.db"
def
test_ascii_file_shelf
(
self
):
try
:
s
=
shelve
.
open
(
self
.
fn
,
binary
=
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