MCPcopy Create free account
hub / github.com/pexpect/pexpect / _NullCoder

Class _NullCoder

pexpect/spawnbase.py:13–21  ·  view source on GitHub ↗

Pass bytes through unchanged.

Source from the content-addressed store, hash-verified

11text_type = str if PY3 else unicode
12
13class _NullCoder(object):
14 """Pass bytes through unchanged."""
15 @staticmethod
16 def encode(b, final=False):
17 return b
18
19 @staticmethod
20 def decode(b, final=False):
21 return b
22
23class SpawnBase(object):
24 """A base class providing the backwards-compatible spawn API for Pexpect.

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…