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
0b11c5fd
Kaydet (Commit)
0b11c5fd
authored
Ock 27, 2008
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change isbasestring function as discussed on the cvs list a while ago
üst
61792348
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
optparse.py
Lib/optparse.py
+7
-4
No files found.
Lib/optparse.py
Dosyayı görüntüle @
0b11c5fd
...
@@ -823,11 +823,14 @@ try:
...
@@ -823,11 +823,14 @@ try:
except
NameError
:
except
NameError
:
(
True
,
False
)
=
(
1
,
0
)
(
True
,
False
)
=
(
1
,
0
)
def
isbasestring
(
x
):
try
:
try
:
basestring
except
NameError
:
def
isbasestring
(
x
):
return
isinstance
(
x
,
(
types
.
StringType
,
types
.
UnicodeType
))
else
:
def
isbasestring
(
x
):
return
isinstance
(
x
,
basestring
)
return
isinstance
(
x
,
basestring
)
except
:
return
isinstance
(
x
,
types
.
StringType
)
or
isinstance
(
x
,
types
.
UnicodeType
)
class
Values
:
class
Values
:
...
...
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