-
Take out user agent, because it appears here, here.
-
Typo
-
This might be rewritten:
def to_hex(s):
n = int(s.lstrip('#'), 16)
return (n >> 16, (n >> 8) & 0xff, n & 0xff)
- I guess we can simplify it.
def isInside(self, x, y):
return self.x <= x <= self.x2 and self.y <= y <= self.y2