MCPcopy Create free account
hub / github.com/LangGraph-GUI/LangGraph-GUI-backend / __init__

Method __init__

src/ServerTee.py:14–20  ·  view source on GitHub ↗
(self, filename, mode='a')

Source from the content-addressed store, hash-verified

12 """
13
14 def __init__(self, filename, mode='a'):
15 self.file = open(filename, mode, buffering=1) # line-buffered
16 self.stdout = sys.stdout
17 self.lock = Lock()
18 self.subscribers = []
19 self.buffer = "" # buffer for partial lines
20 sys.stdout = self # redirect global stdout
21
22 def write(self, message):
23 with self.lock:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected