#NEWLINE# def init( policy_file = None , rules = None , default_rule = None , use_conf = True ) : #NEWLINE# #INDENT# 'Init an Enforcer class.\n\n       :param policy_file: Custom policy file to use, if none is specified,\n                           `CONF.policy_file` will be used.\n       :param rules: Default dictionary / Rules to use. It will be\n                     considered just in the first instantiation.\n       :param default_rule: Default rule to use, CONF.default_rule will\n                            be used if none is specified.\n       :param use_conf: Whether to load rules from config file.\n    ' #NEWLINE# global _ENFORCER #NEWLINE# if ( not _ENFORCER ) : #NEWLINE# #INDENT# _ENFORCER = policy . Enforcer ( CONF , policy_file = policy_file , rules = use_conf , default_rule = default_rule , use_conf = use_conf )