summaryrefslogtreecommitdiff
path: root/pexpect/spawnbase.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-10-10 18:51:10 -0700
committerThomas Kluyver <takowl@gmail.com>2014-11-23 16:44:05 -0800
commit62526f1293089ebfcdb0d925a271c3af0455c90f (patch)
tree37b7be2a34386a47387305f934f402fcbe7a1d5a /pexpect/spawnbase.py
parente417d69bf81304ed9121b14af114b3265756d838 (diff)
downloadpexpect-62526f1293089ebfcdb0d925a271c3af0455c90f.tar.gz
Delegate sending control characters to ptyprocess
Diffstat (limited to 'pexpect/spawnbase.py')
-rw-r--r--pexpect/spawnbase.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/pexpect/spawnbase.py b/pexpect/spawnbase.py
index 5d51b85..78b5f6a 100644
--- a/pexpect/spawnbase.py
+++ b/pexpect/spawnbase.py
@@ -15,9 +15,6 @@ class SpawnBase(object):
string_type = bytes
if PY3:
allowed_string_types = (bytes, str)
- @staticmethod
- def _chr(c):
- return bytes([c])
linesep = os.linesep.encode('ascii')
crlf = '\r\n'.encode('ascii')
@@ -30,7 +27,6 @@ class SpawnBase(object):
return sys.stdout.write(b.decode('ascii', 'replace'))
else:
allowed_string_types = (basestring,) # analysis:ignore
- _chr = staticmethod(chr)
linesep = os.linesep
crlf = '\r\n'
write_to_stdout = sys.stdout.write
@@ -455,13 +451,11 @@ class SpawnBaseUnicode(SpawnBase):
if PY3:
string_type = str
allowed_string_types = (str, )
- _chr = staticmethod(chr)
linesep = os.linesep
crlf = '\r\n'
else:
string_type = unicode
allowed_string_types = (unicode, )
- _chr = staticmethod(unichr)
linesep = os.linesep.decode('ascii')
crlf = '\r\n'.decode('ascii')
# This can handle unicode in both Python 2 and 3