MCPcopy Create free account
hub / github.com/EASY233/Finger / target

Method target

lib/options.py:32–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 run = Quake()
31
32 def target(self):
33 if self._url:
34 self.check(self._url)
35 elif self._file:
36 if os.path.exists(self._file):
37 with open(self._file, 'r') as f:
38 for i in f:
39 self.check(i.strip())
40 else:
41 errMsg = "File {0} is not find".format(self._file)
42 logging.error(errMsg)
43 exit(0)
44
45 def check(self, url):
46 for key in self.key:

Callers 1

__init__Method · 0.95

Calls 2

checkMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected