make this py3 compatible (#22)

* make this py3 compatible
This commit is contained in:
alanhlam 2019-11-21 22:20:08 -08:00 committed by GitHub
parent 3d8f61a3ad
commit 174d656cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ class FilterModule(object):
} }
def to_nebula_ip(self, ip_str): def to_nebula_ip(self, ip_str):
ip_list = map(int, ip_str.split(".")) ip_list = list(map(int, ip_str.split(".")))
ip_list[0] = 10 ip_list[0] = 10
ip_list[1] = 168 ip_list[1] = 168
ip = '.'.join(map(str, ip_list)) ip = '.'.join(map(str, ip_list))