diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-03 00:48:15 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-03 00:48:15 (GMT) |
commit | 44f20c13b64b2064d76aebaf7c367a18482d4b04 (patch) | |
tree | c7fc0948457f0f25598ebaa0477c4d17546ed4a0 /QMTest | |
parent | b1eb6af535ccfd3581167cd2e15b1e6415c070a0 (diff) | |
download | SCons-44f20c13b64b2064d76aebaf7c367a18482d4b04.zip SCons-44f20c13b64b2064d76aebaf7c367a18482d4b04.tar.gz SCons-44f20c13b64b2064d76aebaf7c367a18482d4b04.tar.bz2 |
fix byte/str py2/3
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestCmd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py index 370101b..b97f103 100644 --- a/QMTest/TestCmd.py +++ b/QMTest/TestCmd.py @@ -783,7 +783,7 @@ class Popen(subprocess.Popen): return 0 try: - written = os.write(self.stdin.fileno(), input) + written = os.write(self.stdin.fileno(), bytearray(input,'utf-8')) except OSError as why: if why.args[0] == errno.EPIPE: #broken pipe return self._close('stdin') @@ -1355,6 +1355,7 @@ class TestCmd(object): if timeout: self.timer = threading.Timer(float(timeout), self._timeout) self.timer.start() + print("CMD:%s"%cmd) p = Popen(cmd, stdin=stdin, stdout=subprocess.PIPE, |