Skip to content

Commit

Permalink
Merge pull request #236 from GeoSander/patch-1
Browse files Browse the repository at this point in the history
Fix syntax warning
  • Loading branch information
drnextgis authored Oct 24, 2022
2 parents 35cce33 + 8c3a65e commit 782fad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py_tiled_layer/tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def tileUrl(self, zoom, x, y):
bit = zoom - i
digit = ord('0')
mask = 1 << (bit - 1) # if (bit - 1) > 0 else 1 >> (bit - 1)
if (x & mask) is not 0:
if (x & mask) != 0:
digit += 1
if (y & mask) is not 0:
if (y & mask) != 0:
digit += 2
quadkey += chr(digit)
return self.serviceUrl.replace("{q}", str(quadkey))
Expand Down

0 comments on commit 782fad2

Please sign in to comment.