Merge "Fixed python3 failure in functional tests using net_helpers"

This commit is contained in:
Jenkins 2017-05-25 02:30:38 +00:00 committed by Gerrit Code Review
commit dbe7a66fbd
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ class RootHelperProcess(subprocess.Popen):
return stream.readline()
def writeline(self, data):
self.stdin.write(data + os.linesep)
self.stdin.write((data + os.linesep).encode('utf-8'))
self.stdin.flush()
def _wait_for_child_process(self, timeout=CHILD_PROCESS_TIMEOUT,