mirror of
https://github.com/xxh/xxh
synced 2024-12-11 20:52:35 +00:00
cleaning
This commit is contained in:
parent
f81bac83ec
commit
c8cb57f9d6
1 changed files with 12 additions and 10 deletions
|
@ -154,11 +154,13 @@ class xxh:
|
|||
if pattern == 2:
|
||||
# Expected:
|
||||
# Enter passphrase for key '<keyfile>':
|
||||
if key_password is None:
|
||||
if user_key_password:
|
||||
sess.sendline(user_key_password)
|
||||
elif key_password:
|
||||
sess.sendline(key_password)
|
||||
else:
|
||||
user_key_password = getpass.getpass(prompt=(sess.before + sess.after).decode("utf-8")+' ')
|
||||
sess.sendline(user_key_password)
|
||||
else:
|
||||
sess.sendline(key_password)
|
||||
|
||||
if pattern in [3, 4]:
|
||||
# Expected:
|
||||
|
|
Loading…
Reference in a new issue