MCPcopy Create free account
hub / github.com/ProjectMitosisOS/mitosis-core / print_one

Method print_one

scripts/bootstrap_proxy.py:24–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.name = name
23
24 def print_one(self):
25 if self.c.recv_ready():
26 try:
27 res = self.c.recv(4096).decode().splitlines()
28 for l in res:
29 print("@%-10s" % self.name,l.strip())
30 except:
31 pass
32
33 if self.c.recv_stderr_ready():
34 res = self.c.recv_stderr(4096).decode().splitlines()
35 for l in res:
36 print("@%-10s" % self.name,l.strip())
37
38 if self.c.exit_status_ready():
39 print("exit ",self.name)
40 return False
41
42 return True
43
44def check_keywords(lines,keywords,black_keywords):
45 match = []

Callers 1

mainFunction · 0.45

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected