def get_quality(self, type='<STR_LIT>'):
if type == '<STR_LIT>':<EOL><INDENT>if <NUM_LIT:0> < self.etx < <NUM_LIT>:<EOL><INDENT>quality = <NUM_LIT:1><EOL><DEDENT>elif self.etx < <NUM_LIT:3>:<EOL><INDENT>quality = <NUM_LIT:2><EOL><DEDENT>else:<EOL><INDENT>quality = <NUM_LIT:3><EOL><DEDENT><DEDENT>elif type == '<STR_LIT>':<EOL><INDENT>if -<NUM_LIT> < self.dbm < <NUM_LIT:0>:<EOL><INDENT>quality = <NUM_LIT:1><EOL><DEDENT>elif self.dbm > -<NUM_LIT>:<EOL><INDENT>quality = <NUM_LIT:2><EOL><DEDENT>else:<EOL><INDENT>quality = <NUM_LIT:3><EOL><DEDENT><DEDENT>return quality<EOL>
used to determine color of links