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

Method update

scapy/config.py:416–426  ·  view source on GitHub ↗
(self,
               other,  # type: Any
               **kwargs  # type: Any
               )

Source from the content-addressed store, hash-verified

414 super(CacheInstance, self).__setitem__(item, v)
415
416 def update(self,
417 other, # type: Any
418 **kwargs # type: Any
419 ):
420 # type: (...) -> None
421 for key, value in other.items():
422 # We only update an element from `other` either if it does
423 # not exist in `self` or if the entry in `self` is older.
424 if key not in self or self._timetable[key] < other._timetable[key]:
425 dict.__setitem__(self, key, value)
426 self._timetable[key] = other._timetable[key]
427
428 def iteritems(self):
429 # type: () -> Iterator[Tuple[str, Any]]

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.80
__setitem__Method · 0.45

Tested by

no test coverage detected