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
dd1bcdf6
Kaydet (Commit)
dd1bcdf6
authored
May 01, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #26711: Fixed the comparison of plistlib.Data with other types.
üst
f5f37d78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
plistlib.py
Lib/plistlib.py
+2
-2
test_plistlib.py
Lib/test/test_plistlib.py
+3
-3
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/plistlib.py
Dosyayı görüntüle @
dd1bcdf6
...
...
@@ -225,10 +225,10 @@ class Data:
def
__eq__
(
self
,
other
):
if
isinstance
(
other
,
self
.
__class__
):
return
self
.
data
==
other
.
data
elif
isinstance
(
other
,
str
):
elif
isinstance
(
other
,
bytes
):
return
self
.
data
==
other
else
:
return
id
(
self
)
==
id
(
other
)
return
NotImplemented
def
__repr__
(
self
):
return
"
%
s(
%
s)"
%
(
self
.
__class__
.
__name__
,
repr
(
self
.
data
))
...
...
Lib/test/test_plistlib.py
Dosyayı görüntüle @
dd1bcdf6
...
...
@@ -515,15 +515,15 @@ class TestPlistlibDeprecated(unittest.TestCase):
cur
=
plistlib
.
loads
(
buf
)
self
.
assertEqual
(
cur
,
out_data
)
self
.
assert
Not
Equal
(
cur
,
in_data
)
self
.
assertEqual
(
cur
,
in_data
)
cur
=
plistlib
.
loads
(
buf
,
use_builtin_types
=
False
)
self
.
assert
Not
Equal
(
cur
,
out_data
)
self
.
assertEqual
(
cur
,
out_data
)
self
.
assertEqual
(
cur
,
in_data
)
with
self
.
assertWarns
(
DeprecationWarning
):
cur
=
plistlib
.
readPlistFromBytes
(
buf
)
self
.
assert
Not
Equal
(
cur
,
out_data
)
self
.
assertEqual
(
cur
,
out_data
)
self
.
assertEqual
(
cur
,
in_data
)
...
...
Misc/NEWS
Dosyayı görüntüle @
dd1bcdf6
...
...
@@ -107,6 +107,8 @@ Core and Builtins
Library
-------
- Issue #26711: Fixed the comparison of plistlib.Data with other types.
- Issue #24114: Fix an uninitialized variable in `ctypes.util`.
The bug only occurs on SunOS when the ctypes implementation searches
...
...
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