def set_editor(self, editor):
        self.editor = editor
        self.update_editor_extension()
The editor instance set its file extension.
dataset/ETHPy150Open richrd/suplemon/suplemon/file.py/File.set_editor