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
bf1d2bc7
Kaydet (Commit)
bf1d2bc7
authored
Ock 24, 2011
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make the type consistent for hashlib algorithm constants. (Reviewed by Benjamin).
üst
acff595a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
hashlib.py
Lib/hashlib.py
+2
-2
test_hashlib.py
Lib/test/test_hashlib.py
+1
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/hashlib.py
Dosyayı görüntüle @
bf1d2bc7
...
...
@@ -56,8 +56,8 @@ More condensed:
# always available algorithm is added.
__always_supported
=
(
'md5'
,
'sha1'
,
'sha224'
,
'sha256'
,
'sha384'
,
'sha512'
)
algorithms_guaranteed
=
__always_supported
algorithms_available
=
frozen
set
(
__always_supported
)
algorithms_guaranteed
=
set
(
__always_supported
)
algorithms_available
=
set
(
__always_supported
)
__all__
=
__always_supported
+
(
'new'
,
'algorithms_guaranteed'
,
'algorithms_available'
)
...
...
Lib/test/test_hashlib.py
Dosyayı görüntüle @
bf1d2bc7
...
...
@@ -103,7 +103,7 @@ class HashLibTestCase(unittest.TestCase):
def
test_algorithms_guaranteed
(
self
):
self
.
assertEqual
(
hashlib
.
algorithms_guaranteed
,
tuple
(
_algo
for
_algo
in
self
.
supported_hash_names
set
(
_algo
for
_algo
in
self
.
supported_hash_names
if
_algo
.
islower
()))
def
test_algorithms_available
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
bf1d2bc7
...
...
@@ -16,6 +16,9 @@ Core and Builtins
Library
-------
- Have hashlib.algorithms_available and hashlib.algorithms_guaranteed both
return sets instead of one returning a tuple and the other a frozenset.
- Issue #10987: Fix the recursion limit handling in the _pickle module.
- Issue #10983: Fix several bugs making tunnel requests in http.client.
...
...
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