Проверка шаблона шины для iOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 kuukautta sitten
123456789101112131415
  1. class Mode:
  2. def __init__(self):
  3. self.reset()
  4. def parseLine(self, line):
  5. if line.startswith("src:"):
  6. self.reset()
  7. self.isSource = True
  8. elif line.startswith("replace:"):
  9. self.reset()
  10. self.isReplacement = True
  11. def reset(self):
  12. self.isSource = False
  13. self.isReplacement = False