def _thresholds_init(self):
thresholds = getattr(self._py3status_module, "<STR_LIT>", [])<EOL>self._thresholds = {}<EOL>if isinstance(thresholds, list):<EOL><INDENT>try:<EOL><INDENT>thresholds.sort()<EOL><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>self._thresholds[None] = [(x[<NUM_LIT:0>], self._get_color(x[<NUM_LIT:1>])) for x in thresholds]<EOL>return<EOL><DEDENT>elif isinstance(thresholds, dict):<EOL><INDENT>for key, value in thresholds.items():<EOL><INDENT>if isinstance(value, list):<EOL><INDENT>try:<EOL><INDENT>value.sort()<EOL><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>self._thresholds[key] = [<EOL>(x[<NUM_LIT:0>], self._get_color(x[<NUM_LIT:1>])) for x in value<EOL>]<EOL><DEDENT><DEDENT><DEDENT>
Initiate and check any thresholds set