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

Method itervalues

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

Source from the content-addressed store, hash-verified

452 return self.iterkeys()
453
454 def itervalues(self):
455 # type: () -> Iterator[Tuple[str, Any]]
456 if self.timeout is None:
457 return super(CacheInstance, self).values()
458 t0 = time.time()
459 return (
460 v
461 for (k, v) in super(CacheInstance, self).items()
462 if t0 - self._timetable[k] < self.timeout
463 )
464
465 def items(self):
466 # type: () -> Any

Callers 1

valuesMethod · 0.95

Calls 2

itemsMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected