Skip to content
Snippets Groups Projects
Unverified Commit e404ba9a authored by Amber Brown's avatar Amber Brown Committed by GitHub
Browse files

Fix manhole on py3 (pt 2) (#4067)

parent b69216f7
No related branches found
No related tags found
No related merge requests found
Manhole now works again on Python 3, instead of failing with a "couldn't match all kex parts" when connecting.
......@@ -70,6 +70,8 @@ def manhole(username, password, globals):
Returns:
twisted.internet.protocol.Factory: A factory to pass to ``listenTCP``
"""
if not isinstance(password, bytes):
password = password.encode('ascii')
checker = checkers.InMemoryUsernamePasswordDatabaseDontUse(
**{username: password}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment