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
094662a1
Kaydet (Commit)
094662a1
authored
Haz 01, 2002
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace boolean test with is None
üst
0f4940c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
formatter.py
Lib/formatter.py
+2
-2
ftplib.py
Lib/ftplib.py
+1
-1
gettext.py
Lib/gettext.py
+1
-1
hmac.py
Lib/hmac.py
+1
-1
No files found.
Lib/formatter.py
Dosyayı görüntüle @
094662a1
...
...
@@ -38,7 +38,7 @@ class NullFormatter:
"""
def
__init__
(
self
,
writer
=
None
):
if
not
writer
:
if
writer
is
None
:
writer
=
NullWriter
()
self
.
writer
=
writer
def
end_paragraph
(
self
,
blankline
):
pass
...
...
@@ -433,7 +433,7 @@ class DumbWriter(NullWriter):
def
test
(
file
=
None
):
w
=
DumbWriter
()
f
=
AbstractFormatter
(
w
)
if
file
:
if
file
is
not
None
:
fp
=
open
(
file
)
elif
sys
.
argv
[
1
:]:
fp
=
open
(
sys
.
argv
[
1
])
...
...
Lib/ftplib.py
Dosyayı görüntüle @
094662a1
...
...
@@ -659,7 +659,7 @@ class Netrc:
__defacct
=
None
def
__init__
(
self
,
filename
=
None
):
if
not
filenam
e
:
if
filename
is
Non
e
:
if
os
.
environ
.
has_key
(
"HOME"
):
filename
=
os
.
path
.
join
(
os
.
environ
[
"HOME"
],
".netrc"
)
...
...
Lib/gettext.py
Dosyayı görüntüle @
094662a1
...
...
@@ -104,7 +104,7 @@ class NullTranslations:
self
.
_info
=
{}
self
.
_charset
=
None
self
.
_fallback
=
None
if
fp
:
if
fp
is
not
None
:
self
.
_parse
(
fp
)
def
_parse
(
self
,
fp
):
...
...
Lib/hmac.py
Dosyayı görüntüle @
094662a1
...
...
@@ -46,7 +46,7 @@ class HMAC:
key
=
key
+
chr
(
0
)
*
(
blocksize
-
len
(
key
))
self
.
outer
.
update
(
_strxor
(
key
,
opad
))
self
.
inner
.
update
(
_strxor
(
key
,
ipad
))
if
(
msg
)
:
if
msg
is
not
None
:
self
.
update
(
msg
)
## def clear(self):
...
...
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