parameters: (self, filename)
docstring: set defaults to contents of a file
docstring_summary: set defaults to contents of a file
docstring_tokens: set defaults to contents of a file
function: def set_file(self, filename):
          '''set defaults to contents of a file'''
          print("Setting defaults from %s" % filename)
          f = open(filename, 'r')
          contents = f.read()
          f.close()
          # remove carriage returns from the file
          contents = contents.replace('\r','')
          self.set_contents(contents)
function_tokens: def set_file ( self , filename ) : print ( "Setting defaults from %s" % filename ) f = open ( filename , 'r' ) contents = f . read ( ) f . close ( ) # remove carriage returns from the file contents = contents . replace ( '\r' , '' ) self . set_contents ( contents )