def read(self):
    contents = self._read(self.template_path)
    if self.binary:
        self.contents = contents
    else:
        self.contents = contents.format(**self.config)
def read(self):
    contents = self._read(self.template_path)
    if self.binary:
        self.contents = contents
    else:
        self.contents = contents.format(**self.config)