Closed dindom999 closed 6 years ago
@dindom999 - did you re-test? What did you find?
hi @jeffkowalski , I test it again. you are right ! getpass accepts pastes. I don't konw why it fail before, maybe there is a space or "\b" at the end of word when I copied, and I can't see it because getpasss don't show anything.
So, I suggest to add a "strip()" like
getpass.getpass.strip()
@dindom999, the strip
you recommend is a reasonable improvement.
Unfortunately, this pull request is now complicated with several independent changes, none of which contain the strip
. (It's a good practice to submit only one kind of change per pull request. Here you have three. This time, it's OK, but in the future please separate them.)
Please remove the raw_input
and replace with strip
after getpass
.
Thanks.
hi @jeffkowalski , I have changed back to getpass. sorry to make things mass.
Thank you, @dindom999 I've merged into 2.0.15
Hi jeffkowalski, I am using arch+i3, pasted from clipboard fail, so I change it. I will test it later in ubuntu.