class documentation

class twisted.conch.endpoints._ReadFile: (source)

View In Hierarchy

A weakly file-like object which can be used with KnownHostsFile to respond in the negative to all prompts for decisions.

Method __init__
Method write No-op.
Method readline Always give back the byte string that this _ReadFile was initialized with.
Method close No-op.
Instance Variable _contents Undocumented
def __init__(self, contents): (source)
Parameterscontentsbytes which will be returned from every readline call.
_contents = (source)

Undocumented

def write(self, data): (source)

No-op.

Parametersdataignored
def readline(self, count=-1): (source)

Always give back the byte string that this _ReadFile was initialized with.

Parameterscountignored
ReturnsA fixed byte-string. (type: bytes)
def close(self): (source)

No-op.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.