MCPcopy Index your code
hub / github.com/secdev/scapy / iteritems

Method iteritems

scapy/config.py:428–437  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

426 self._timetable[key] = other._timetable[key]
427
428 def iteritems(self):
429 # type: () -> Iterator[Tuple[str, Any]]
430 if self.timeout is None:
431 return super(CacheInstance, self).items()
432 t0 = time.time()
433 return (
434 (k, v)
435 for (k, v) in super(CacheInstance, self).items()
436 if t0 - self._timetable[k] < self.timeout
437 )
438
439 def iterkeys(self):
440 # type: () -> Iterator[str]

Callers 1

itemsMethod · 0.95

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected