def METHOD_NAME(self, filename):
    self.filename = filename or ''
    if filename and os.path.exists(filename):
        with open(filename, 'r') as handle:
            content = handle.read()
    else:
        content = ''
    self._set(content)