def format_directive(module, package=None):
 directive = ('.. automodule:: %s\n' % makename(package, module))
 for option in OPTIONS:
  directive += ('    :%s:\n' % option)
 return directive

def format_directive ( module , package = None ) : directive = ( '.. automodule:: %s\n' % makename ( package , module ) ) for option in OPTIONS : directive += ( '    :%s:\n' % option ) return directive
create the automodule directive and add the options .