def editor_command():
 editor = os.environ.get('EDITOR')
 if editor:
  return editor
 return open_anything()

def editor_command ( ) : editor = os . environ . get ( 'EDITOR' ) if editor : return editor return open_anything ( )
get a command for opening a text file .