From fca5513610060a56af18ad51ab2bd40f58d47fc8 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 29 Jan 2019 05:34:44 +0000 Subject: [PATCH] issue #429: fix sudo regression. --- mitogen/sudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/sudo.py b/mitogen/sudo.py index 05483f7e..708953cd 100644 --- a/mitogen/sudo.py +++ b/mitogen/sudo.py @@ -253,7 +253,7 @@ class Stream(mitogen.parent.Stream): if password_sent: raise PasswordError(self.password_incorrect_msg) self.diag_stream.transmit_side.write( - mitogen.core.to_text(self.password + '\n').encode('utf-8') + (mitogen.core.to_text(self.password) + '\n').encode('utf-8') ) password_sent = True