From d7cc098cde8306ddb8ec017ce3bbb24c7aa64e8d Mon Sep 17 00:00:00 2001 From: William Deegan Date: Wed, 5 Apr 2017 14:35:33 -0700 Subject: remove duplicate definitions for to_bytes and to_str --- QMTest/TestCmd.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py index 2c0c0d3..07a3905 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) -- cgit v0.12