MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / open

Method open

src/ext/makerbot_driver/Writer/StreamWriter.py:45–49  ·  view source on GitHub ↗

Open or re-open an already defined stream connection

(self)

Source from the content-addressed store, hash-verified

43 self.file.close()
44
45 def open(self):
46 """ Open or re-open an already defined stream connection """
47 with self._condition:
48 if self.file is not None:
49 self.file.open()
50
51 def is_open(self):
52 """@returns true if a port is open and active, False otherwise """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected