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
03756533
Kaydet (Commit)
03756533
authored
May 10, 2014
tarafından
Jason R. Coombs
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace overly-aggressive comparison for type equality with an isinstance check.
üst
a384652d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
upload.py
Lib/distutils/command/upload.py
+1
-1
No files found.
Lib/distutils/command/upload.py
Dosyayı görüntüle @
03756533
...
@@ -146,7 +146,7 @@ class upload(PyPIRCCommand):
...
@@ -146,7 +146,7 @@ class upload(PyPIRCCommand):
for
key
,
value
in
data
.
items
():
for
key
,
value
in
data
.
items
():
title
=
'
\n
Content-Disposition: form-data; name="
%
s"'
%
key
title
=
'
\n
Content-Disposition: form-data; name="
%
s"'
%
key
# handle multiple entries for the same name
# handle multiple entries for the same name
if
type
(
value
)
!=
type
([]
):
if
not
isinstance
(
value
,
list
):
value
=
[
value
]
value
=
[
value
]
for
value
in
value
:
for
value
in
value
:
if
type
(
value
)
is
tuple
:
if
type
(
value
)
is
tuple
:
...
...
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