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

Method initDatabase

lib/ip2Region.py:178–187  ·  view source on GitHub ↗

" initialize the database for search " param: dbFile

(self, dbfile)

Source from the content-addressed store, hash-verified

176 return self.returnData(dataPrt)
177
178 def initDatabase(self, dbfile):
179 """
180 " initialize the database for search
181 " param: dbFile
182 """
183 try:
184 self.__f = io.open(dbfile, "rb")
185 except IOError as e:
186 print("[Error]: %s" % e)
187 sys.exit()
188
189 def returnData(self, dataPtr):
190 """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected