Skip to content

Commit

Permalink
This fixes an issue opening /dev/tty when using Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
the0id committed Aug 22, 2017
1 parent 2ca7c76 commit e445378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twisted/conch/client/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def verifyHostKey(transport, host, pubKey, fingerprint):
transport.factory.options['known-hosts']
or os.path.expanduser(_KNOWN_HOSTS)
))
ui = ConsoleUI(lambda : _open("/dev/tty", "r+b"))
ui = ConsoleUI(lambda : _open("/dev/tty", "r+b", buffering=0))
return kh.verifyHostKey(ui, actualHost, host, actualKey)


Expand Down

0 comments on commit e445378

Please sign in to comment.