From 9c2d9ac5fe6455ba8ca2903a96d05ce80fe254e3 Mon Sep 17 00:00:00 2001 From: Ali Ashraf Date: Mon, 27 Apr 2020 00:47:31 +0500 Subject: [PATCH] Fixed python3.0 is not with a literal issue --- src/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.py b/src/utils.py index 33f5ce3..a575b3e 100644 --- a/src/utils.py +++ b/src/utils.py @@ -47,9 +47,9 @@ class Utils: bit = level - i digit = ord('0') mask = 1 << (bit - 1) # if (bit - 1) > 0 else 1 >> (bit - 1) - if (tile_x & mask) is not 0: + if (tile_x & mask) != 0: digit += 1 - if (tile_y & mask) is not 0: + if (tile_y & mask) != 0: digit += 2 quadkey += chr(digit) return quadkey