From e8bbe27e428d534d13735f832c84a313fcedc51e Mon Sep 17 00:00:00 2001 From: weideguo <2515717245@qq.com> Date: Mon, 25 Jul 2022 11:33:21 +0800 Subject: [PATCH] fix error for xdbSearcher.py --- binding/python/xdbSearcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/python/xdbSearcher.py b/binding/python/xdbSearcher.py index 31340d2..d35277b 100644 --- a/binding/python/xdbSearcher.py +++ b/binding/python/xdbSearcher.py @@ -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"