def _info_ask_clean(self): SocketMultiprocess._info_ask_clean(self) if self.subscribed_tasks: print('subscribed_tasks is not clean: ') print(' ' + str(sorted(self.subscribed_tasks))) else: print('subscribed_tasks is clean')
def _info_ask_clean(self): SocketMultiprocess._info_ask_clean(self) if self.tasks: print('tasks_data is not clean of keys. Keys left: ') for code, list_data in self.tasks.items(): print(code) if not isinstance(list_data, list): list_data = [list_data] for data in list_data: if hasattr(data, 'code'): print(' ' + data.code + ' ; ') if hasattr(data, 'address'): print(' ' + data.address + ' ; ') if hasattr(data, 'left'): print(' ' + 'left : ' + str(data.left)) else: print('tasks_data is clean')