mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 16:47:47 +00:00
[tests] support python3 (#3068)
This commit is contained in:
@@ -56,7 +56,10 @@ class otCli:
|
||||
self.__init_sim(nodeid, mode)
|
||||
|
||||
if self.verbose:
|
||||
self.pexpect.logfile_read = sys.stdout
|
||||
if sys.version_info[0] == 2:
|
||||
self.pexpect.logfile_read = sys.stdout
|
||||
else:
|
||||
self.pexpect.logfile_read = sys.stdout.buffer
|
||||
|
||||
def __init_sim(self, nodeid, mode):
|
||||
""" Initialize a simulation node. """
|
||||
|
||||
Reference in New Issue
Block a user