Skip to content

Some code readability improvements #1

@ablearthy

Description

@ablearthy
  1. Take out user agent, because it appears here, here.

  2. Typo

  3. This might be rewritten:

def to_hex(s):
  n = int(s.lstrip('#'), 16)
  return (n >> 16, (n >> 8) & 0xff, n & 0xff)
  1. I guess we can simplify it.
def isInside(self, x, y):
  return self.x <= x <= self.x2 and self.y <= y <= self.y2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions