(self, group)
For debugging, printing out the rules for a particular group
For debugging, printing out the rules for a particular group
For debugging printing out the rules for a particular group
def print_rules(self, group):
        '''For debugging, printing out the rules for a particular group'''
        rules = self.groups.get(group)
        if not rules:
            print("no rules for %s" %group)
            return
        for rule, values in rules.items():
            if isinstance(values, tuple):
                v = values[0]
            else:
                v = values
def print_rules ( self , group ) : rules = self . groups . get ( group ) if not rules : print ( "no rules for %s" % group ) return for rule , values in rules . items ( ) : if isinstance ( values , tuple ) : v = values [ 0 ] else : v = values