#NEWLINE# def _add_rule( self , rule , rule_type ) : #NEWLINE# #INDENT# "\n        Add the given rule to the internal rules set.\n\n        Does nothing if the rule is None.\n\n        Parameters\n        ----------\n        rule: PackageRule or None\n            The rule to add\n        rule_type: str\n            Rule's  type\n        " #NEWLINE# if ( ( rule is not None ) and ( rule not in self . rules_set ) ) : #NEWLINE# #INDENT# self . rules_set . add_rule ( rule , rule )