docs: def change_text(self,
  	                text,
  	                fname,
  	                pattern=None,
  	                expect=None,
  	                shutit_pexpect_child=None,
  	                before=False,
  	                force=False,
  	                delete=False,
  	                note=None,
  	                replace=False,
  	                line_oriented=True,
  	                create=True,
  	                loglevel=logging.DEBUG):
  
  		"""Change text in a file.
  
  		Returns None if there was no match for the regexp, True if it was matched
  		and replaced, and False if the file did not exist or there was some other
  		problem.
  
  		@param text:          Text to insert.
  		@param fname:         Filename to insert text to
  		@param pattern:       Regexp for a line to match and insert after/before/replace.
  		                      If none, put at end of file.
  		@param expect:        See send()
  		@param shutit_pexpect_child:         See send()
  		@param before:        Whether to place the text before or after the matched text.
  		@param force:         Force the insertion even if the text is in the file.
  		@param delete:        Delete text from file rather than insert
  		@param replace:       Replace matched text with passed-in text. If nothing matches, then append.
  		@param note:          See send()
  		@param line_oriented: Consider the pattern on a per-line basis (default True).
  		                      Can match any continuous section of the line, eg 'b.*d' will match the line: 'abcde'
  		                      If not line_oriented, the regexp is considered on with the flags re.DOTALL, re.MULTILINE
  		                      enabled
  		"""
  		shutit_global.shutit_global_object.yield_to_draw()
  		shutit_pexpect_child = shutit_pexpect_child or self.get_current_shutit_pexpect_session().pexpect_child
  		expect = expect or self.get_current_shutit_pexpect_session().default_expect
  		shutit_pexpect_session = self.get_shutit_pexpect_session_from_child(shutit_pexpect_child)
  		return shutit_pexpect_session.change_text(text,
  		                                          fname,
  		                                          pattern=pattern,
  		                                          before=before,
  		                                          force=force,
  		                                          delete=delete,
  		                                          note=note,
  		                                          replace=replace,
  		                                          line_oriented=line_oriented,
  		                                          create=create,
  		                                          loglevel=loglevel)