MCPcopy
hub / github.com/amoffat/sh / __init__

Method __init__

src/sh/__init__.py:2964–2974  ·  view source on GitHub ↗
(self, log, stream, stdin, bufsize_type, encoding, tty_in)

Source from the content-addressed store, hash-verified

2962 the "read" method, a string, or an iterable"""
2963
2964 def __init__(self, log, stream, stdin, bufsize_type, encoding, tty_in):
2965 self.stream = stream
2966 self.stdin = stdin
2967
2968 self.log = log
2969 self.encoding = encoding
2970 self.tty_in = tty_in
2971
2972 self.stream_bufferer = StreamBufferer(bufsize_type, self.encoding)
2973 self.get_chunk, log_msg = determine_how_to_read_input(stdin)
2974 self.log.debug("parsed stdin as a %s", log_msg)
2975
2976 def fileno(self):
2977 """defining this allows us to do poll on an instance of this

Callers

nothing calls this directly

Calls 3

StreamBuffererClass · 0.85
debugMethod · 0.80

Tested by

no test coverage detected