Skip to content

Commit 946d718

Browse files
committed
Rename _input_with_echochar function
1 parent 6c71075 commit 946d718

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/getpass.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def unix_getpass(prompt='Password: ', stream=None, *, echochar=None):
8383
stream.write('\n')
8484
return passwd
8585

86-
passwd = _echochar_input(prompt, stream, input, echochar)
86+
passwd = _input_with_echochar(prompt, stream, input,
87+
echochar)
8788
finally:
8889
termios.tcsetattr(fd, tcsetattr_flags, old)
8990
stream.flush() # issue7208
@@ -168,7 +169,7 @@ def _raw_input(prompt="", stream=None, input=None):
168169
return line
169170

170171

171-
def _echochar_input(prompt="", stream=None, input=None, echochar=""):
172+
def _input_with_echochar(prompt="", stream=None, input=None, echochar=""):
172173
if not stream:
173174
stream = sys.stderr
174175
if not input:

0 commit comments

Comments
 (0)