Merge pull request #246 from weideguo/master

fix errors for xdbSearcher.py
This commit is contained in:
Lion 2022-07-25 11:42:03 +08:00 committed by GitHub
commit 459bb38af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -178,10 +178,10 @@ if __name__ == '__main__':
]
# 1. 缓存
dbPath = "./data/ip2region.xdb";
cb = Searcher.loadContentFromFile(dbfile=dbPath)
cb = XdbSearcher.loadContentFromFile(dbfile=dbPath)
# 2. 创建查询对象
searcher = Searcher(contentBuff=cb)
searcher = XdbSearcher(contentBuff=cb)
# 3. 执行查询
# ip = "1.2.3.4"