MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / stripCode

Method stripCode

pager_lib/nmb/NetBIOSProtocol.py:104–106  ·  view source on GitHub ↗
(ret)

Source from the content-addressed store, hash-verified

102 d2.addErrback(d.errback)
103
104 def stripCode(ret):
105 if ret is not None: # got valid response. Somehow the callback is also called when there is an error.
106 d.callback(map(lambda s: s[0], filter(lambda s: s[1] == TYPE_SERVER, ret)))
107
108 d2.addCallback(stripCode)
109 self.pending_trns[trn_id] = ( time.time()+timeout, NAME_QUERY, d2 )

Callers

nothing calls this directly

Calls 1

callbackMethod · 0.80

Tested by

no test coverage detected