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
ef0056ae
Kaydet (Commit)
ef0056ae
authored
Eyl 21, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
When sys.stdin.fileno() doesn't work, fall back to default_getpass()
-- don't just die.
üst
5fb2631f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
getpass.py
Lib/getpass.py
+4
-1
No files found.
Lib/getpass.py
Dosyayı görüntüle @
ef0056ae
...
@@ -29,7 +29,10 @@ def getpass(prompt='Password: '):
...
@@ -29,7 +29,10 @@ def getpass(prompt='Password: '):
else
:
else
:
return
win_getpass
(
prompt
)
return
win_getpass
(
prompt
)
fd
=
sys
.
stdin
.
fileno
()
try
:
fd
=
sys
.
stdin
.
fileno
()
except
:
return
default_getpass
(
prompt
)
old
=
termios
.
tcgetattr
(
fd
)
# a copy to save
old
=
termios
.
tcgetattr
(
fd
)
# a copy to save
new
=
old
[:]
new
=
old
[:]
...
...
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