def create_module_file(package, module, opts):
 text = format_heading(1, ('%s Module' % module))
 text += format_heading(2, (':mod:`%s` Module' % module))
 text += format_directive(module, package)
 write_file(makename(package, module), text, opts)

def create_module_file ( package , module , opts ) : text = format_heading ( 1 , ( '%s Module' % module ) ) text += format_heading ( 2 , ( ':mod:`%s` Module' % module ) ) text += format_directive ( module , package ) write_file ( makename ( package , module ) , text , opts )
build the text of the file and write the file .