Skip to content

Commit b78bd5f

Browse files
committed
update
1 parent 1f91a36 commit b78bd5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipdb_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_city(self):
99
city = ipdb.City("c:/work/ipdb/city.ipv4.ipdb")
1010
print("ipdb.build.time:", city.build_time())
1111
for A in range(224):
12-
ip_address = "%d.28.1.1" % A
12+
ip_address = u"%d.28.1.1" % A
1313
print(ip_address, city.find(ip_address, "CN"))
1414
print(ip_address, city.find_map(ip_address, "CN"))
1515
print(ip_address, city.find_info(ip_address, "CN"))
@@ -21,7 +21,7 @@ def test_district(self):
2121
district = ipdb.District("c:/work/ipdb/china_district.ipdb")
2222
print("ipdb.build.time:", district.build_time())
2323
for A in range(224):
24-
ip_address = "%d.28.1.1" % A
24+
ip_address = u"%d.28.1.1" % A
2525
try:
2626
print(ip_address, district.find(ip_address, "CN"))
2727
print(ip_address, district.find_map(ip_address, "CN"))
@@ -35,7 +35,7 @@ def test_station(self):
3535
base_station = ipdb.BaseStation("c:/work/ipdb/base_station.ipdb")
3636
print("ipdb.build.time:", base_station.build_time())
3737
for A in range(224):
38-
ip_address = "%d.28.1.1" % A
38+
ip_address = u"%d.28.1.1" % A
3939
try:
4040
print(ip_address, base_station.find(ip_address, "CN"))
4141
print(ip_address, base_station.find_map(ip_address, "CN"))

0 commit comments

Comments
 (0)