parameters: (self, filename, contents)
return_statement: return self.m.file.write_text('write %s' % self.m.path.basename(filename),
                                    filename, contents)
docstring: Convenience function for writing files.
docstring_summary: Convenience function for writing files.
docstring_tokens: Convenience function for writing files .
function: def writefile(self, filename, contents):
      """Convenience function for writing files."""
      return self.m.file.write_text('write %s' % self.m.path.basename(filename),
                                    filename, contents)
function_tokens: def writefile ( self , filename , contents ) : return self . m . file . write_text ( 'write %s' % self . m . path . basename ( filename ) , filename , contents )