Skip to content

Commit 061d651

Browse files
committed
test: make remote-run Python 3 friendly
Without this the remote-run tests fail due to expecting a "bytes-like" object rather than str.
1 parent 0de3535 commit 061d651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/remote-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class CommandRunner(object):
8989
print(concatenated_commands, file=sys.stderr)
9090
if self.dry_run:
9191
return
92-
_, _ = sftp_proc.communicate(concatenated_commands)
92+
_, _ = sftp_proc.communicate(concatenated_commands.encode('utf-8'))
9393
if sftp_proc.returncode:
9494
sys.exit(sftp_proc.returncode)
9595

0 commit comments

Comments
 (0)