def set_updated(self):
<EOL>output = []<EOL>for method in self.methods.values():<EOL><INDENT>data = method["<STR_LIT>"]<EOL>if isinstance(data, list):<EOL><INDENT>if self.testing and data:<EOL><INDENT>data[<NUM_LIT:0>]["<STR_LIT>"] = method.get("<STR_LIT>")<EOL><DEDENT>output.extend(data)<EOL><DEDENT>else:<EOL><INDENT>if data.get("<STR_LIT>") or "<STR_LIT>" in data:<EOL><INDENT>if self.testing:<EOL><INDENT>data["<STR_LIT>"] = method.get("<STR_LIT>")<EOL><DEDENT>output.append(data)<EOL><DEDENT><DEDENT><DEDENT>if output != self.last_output:<EOL><INDENT>urgent = True in [x.get("<STR_LIT>") for x in output]<EOL>if urgent != self.urgent:<EOL><INDENT>self.urgent = urgent<EOL><DEDENT>else:<EOL><INDENT>urgent = False<EOL><DEDENT>self.last_output = output<EOL>self._py3_wrapper.notify_update(self.module_full_name, urgent)<EOL><DEDENT>
Mark the module as updated.
We check if the actual content has changed and if so we trigger an
update in py3status.