summaryrefslogtreecommitdiff
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-05 14:35:33 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-05 14:35:33 -0700
commit5c88aa87b824b34ca70ed65d86100148c95fc0b2 (patch)
tree0fa630853e5ee9cc8cf1229f65a937a1e7d01ee2 /QMTest
parent637846affc9b88193340b9da93e4e12c1a5d771c (diff)
downloadscons-5c88aa87b824b34ca70ed65d86100148c95fc0b2.tar.gz
remove duplicate definitions for to_bytes and to_str
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestCmd.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py
index 2c0c0d38..07a39056 100644
--- a/QMTest/TestCmd.py
+++ b/QMTest/TestCmd.py
@@ -737,16 +737,6 @@ class Popen(subprocess.Popen):
setattr(self, which, None)
- def to_bytes (s):
- if isinstance (s, bytes) or bytes is str:
- return s
- return bytes (s, 'utf-8')
-
- def to_str (s):
- if bytes is str or is_String(s):
- return s
- return str (s, 'utf-8')
-
if sys.platform == 'win32':# and subprocess.mswindows:
def send(self, input):
input = to_bytes(input)