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

Method lazy_init

scapy/modules/p0f.py:347–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

345
346 """
347 def lazy_init(self):
348 try:
349 f = open(self.filename)
350 except Exception:
351 warning("Can't open base %s", self.filename)
352 return
353
354 self.base = {}
355 self.labels = []
356 self._parse_file(f)
357 self.labels = tuple(self.labels)
358 f.close()
359
360 def _parse_file(self, file):
361 """

Callers

nothing calls this directly

Calls 3

_parse_fileMethod · 0.95
warningFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected