Skip to content

Commit

Permalink
Actually! we can just use the py3compat module
Browse files Browse the repository at this point in the history
Re #716
  • Loading branch information
bitprophet committed Apr 25, 2016
1 parent 156ab24 commit 39379ff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions paramiko/transport.py
Expand Up @@ -55,7 +55,7 @@
from paramiko.message import Message
from paramiko.packet import Packetizer, NeedRekeyException
from paramiko.primes import ModulusPack
from paramiko.py3compat import string_types, long, byte_ord, b
from paramiko.py3compat import string_types, long, byte_ord, b, input
from paramiko.rsakey import RSAKey
from paramiko.ecdsakey import ECDSAKey
from paramiko.server import ServerInterface
Expand Down Expand Up @@ -1395,10 +1395,7 @@ def handler(title, instructions, prompt_list):
print(instructions.strip())
for prompt,show_input in prompt_list:
print(prompt.strip(),end=' ')
if (sys.version_info > (3, 0)):
answers.append(input())
else:
answers.append(raw_input())
answers.append(input())
return answers
return self.auth_interactive(username, handler, submethods)

Expand Down

0 comments on commit 39379ff

Please sign in to comment.