I have inherited this python program and, being sort of a noob with bits and such I can't figure out what the problem is. I am getting a syntax error on the first line of the following function:
def tileKey(self, z, x, y):
zBits = z & 0xFFL
# 8bits, 256 levels. normally [0,21]
xBits = x & 0xFFFFFFFL
# 28 bits
yBits = y & 0xFFFFFFFL
# 28 bits
key = (zBits << 56) | (xBits << 28) | (yBits << 0)
# return the key value integer 720576213915009588
return key