@@ -9,7 +9,7 @@ def test_city(self):
9
9
city = ipdb .City ("c:/work/ipdb/city.ipv4.ipdb" )
10
10
print ("ipdb.build.time:" , city .build_time ())
11
11
for A in range (224 ):
12
- ip_address = "%d.28.1.1" % A
12
+ ip_address = u "%d.28.1.1" % A
13
13
print (ip_address , city .find (ip_address , "CN" ))
14
14
print (ip_address , city .find_map (ip_address , "CN" ))
15
15
print (ip_address , city .find_info (ip_address , "CN" ))
@@ -21,7 +21,7 @@ def test_district(self):
21
21
district = ipdb .District ("c:/work/ipdb/china_district.ipdb" )
22
22
print ("ipdb.build.time:" , district .build_time ())
23
23
for A in range (224 ):
24
- ip_address = "%d.28.1.1" % A
24
+ ip_address = u "%d.28.1.1" % A
25
25
try :
26
26
print (ip_address , district .find (ip_address , "CN" ))
27
27
print (ip_address , district .find_map (ip_address , "CN" ))
@@ -35,7 +35,7 @@ def test_station(self):
35
35
base_station = ipdb .BaseStation ("c:/work/ipdb/base_station.ipdb" )
36
36
print ("ipdb.build.time:" , base_station .build_time ())
37
37
for A in range (224 ):
38
- ip_address = "%d.28.1.1" % A
38
+ ip_address = u "%d.28.1.1" % A
39
39
try :
40
40
print (ip_address , base_station .find (ip_address , "CN" ))
41
41
print (ip_address , base_station .find_map (ip_address , "CN" ))
0 commit comments