def update_prompt(self):
prefix = "<STR_LIT>"<EOL>if self._local_endpoint is not None:<EOL><INDENT>prefix += "<STR_LIT>" % self._local_endpoint<EOL><DEDENT>prefix += self.engine.region<EOL>if self.engine.partial:<EOL><INDENT>self.prompt = len(prefix) * "<STR_LIT:U+0020>" + "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>self.prompt = prefix + "<STR_LIT>"<EOL><DEDENT>
Update the prompt