From e21664625c5420a5831b9e6d4cfe4aa096dc5dc8 Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 11 Mar 2021 01:47:09 +0800 Subject: [PATCH] Fix python warning --- tools/generate-ip-mappings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generate-ip-mappings.py b/tools/generate-ip-mappings.py index bec6ac0..2b96989 100755 --- a/tools/generate-ip-mappings.py +++ b/tools/generate-ip-mappings.py @@ -38,7 +38,7 @@ def ipv62int64(addr): if row[3] == "ZZ": continue # Skip empty latitude and longitude - if row[6] is "" or row[7] is "": + if row[6] == "" or row[7] == "": continue if row[0].find(':') == -1: