base.py 456 B

123456789101112131415161718
  1. # See utils/checkpackagelib/readme.txt before editing this file.
  2. import re
  3. class _CheckFunction(object):
  4. def __init__(self, filename, url_to_manual):
  5. self.filename = filename
  6. self.url_to_manual = url_to_manual
  7. self.disable = re.compile(r"^\s*# check-package .*\b{}\b".format(self.__class__.__name__))
  8. def before(self):
  9. pass
  10. def check_line(self, lineno, text):
  11. pass
  12. def after(self):
  13. pass