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

Method close

src/ext/makerbot_pyserial/serialjava.py:132–140  ·  view source on GitHub ↗

Close port

(self)

Source from the content-addressed store, hash-verified

130 self.sPort.disableReceiveTimeout()
131
132 def close(self):
133 """Close port"""
134 if self._isOpen:
135 if self.sPort:
136 self._instream.close()
137 self._outstream.close()
138 self.sPort.close()
139 self.sPort = None
140 self._isOpen = False
141
142 def makeDeviceName(self, port):
143 return device(port)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected