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
2dceb359
Kaydet (Commit)
2dceb359
authored
Eyl 12, 2012
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update merge from 2.7: s/basetring/str
üst
eaae1b76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
argparse.py
Lib/argparse.py
+1
-1
No files found.
Lib/argparse.py
Dosyayı görüntüle @
2dceb359
...
@@ -1957,7 +1957,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
...
@@ -1957,7 +1957,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
# twice (which may fail) if the argument was given, but
# twice (which may fail) if the argument was given, but
# only if it was defined already in the namespace
# only if it was defined already in the namespace
if
(
action
.
default
is
not
None
and
if
(
action
.
default
is
not
None
and
isinstance
(
action
.
default
,
basestring
)
and
isinstance
(
action
.
default
,
str
)
and
hasattr
(
namespace
,
action
.
dest
)
and
hasattr
(
namespace
,
action
.
dest
)
and
action
.
default
is
getattr
(
namespace
,
action
.
dest
)):
action
.
default
is
getattr
(
namespace
,
action
.
dest
)):
setattr
(
namespace
,
action
.
dest
,
setattr
(
namespace
,
action
.
dest
,
...
...
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