MCPcopy Index your code
hub / github.com/RUB-NDS/PRET / timeoutcmd

Method timeoutcmd

printer.py:264–269  ·  view source on GitHub ↗
(self, str_send, timeout, *stuff)

Source from the content-addressed store, hash-verified

262
263 # send mode-specific command with modified timeout
264 def timeoutcmd(self, str_send, timeout, *stuff):
265 timeout_old = self.timeout
266 self.do_timeout(timeout, True)
267 str_recv = self.cmd(str_send, *stuff)
268 self.do_timeout(timeout_old, True)
269 return str_recv
270
271 # ------------------------[ reconnect ]-------------------------------
272 def do_reconnect(self, *arg):

Callers 4

do_unlockMethod · 0.80
do_floodMethod · 0.80
findMethod · 0.80
do_unlockMethod · 0.80

Calls 2

do_timeoutMethod · 0.95
cmdMethod · 0.45

Tested by

no test coverage detected