def read_banner(self): data = pyknc.knc_read(self.conn, 1024) p = pyarrayhash.parse_init() while 1: obj = pyarrayhash.parse(p, data) if obj: break data = pyknc.knc_read(self.conn, 1024) self.banner = True return obj
def __init__(self): self.p = pyarrayhash.parse_init()