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
41e30183
Kaydet (Commit)
41e30183
authored
Nis 21, 2008
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
If sys.stdin is not a tty, fall back to default_getpass after printing
a warning instead of failing with a termios.error.
üst
aa3cadb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
getpass.py
Lib/getpass.py
+4
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/getpass.py
Dosyayı görüntüle @
41e30183
...
@@ -24,6 +24,10 @@ def unix_getpass(prompt='Password: ', stream=None):
...
@@ -24,6 +24,10 @@ def unix_getpass(prompt='Password: ', stream=None):
if
stream
is
None
:
if
stream
is
None
:
stream
=
sys
.
stdout
stream
=
sys
.
stdout
if
not
sys
.
stdin
.
isatty
():
print
>>
sys
.
stderr
,
"Warning: sys.stdin is not a tty."
return
default_getpass
(
prompt
)
try
:
try
:
fd
=
sys
.
stdin
.
fileno
()
fd
=
sys
.
stdin
.
fileno
()
except
:
except
:
...
...
Misc/NEWS
Dosyayı görüntüle @
41e30183
...
@@ -37,6 +37,9 @@ Extensions Modules
...
@@ -37,6 +37,9 @@ Extensions Modules
Library
Library
-------
-------
- getpass.getpass() now works when sys.stdin is not a tty by printing a warning
and falling back to sys.stdin.readline instead of raising termios.error.
- Issue #2014: Allow XML-RPC datetime objects to have dates before
- Issue #2014: Allow XML-RPC datetime objects to have dates before
1900-01-01.
1900-01-01.
...
...
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