def build_template_regexp(cls): from calibre.devices.utils import build_template_regexp return build_template_regexp(cls.save_template())
def build_template_regexp(self): from calibre.devices.utils import build_template_regexp return build_template_regexp(self.save_template)