def iter_settings():
while True:<EOL><INDENT>try:<EOL><INDENT>item = settings_queue.get(timeout=<NUM_LIT:1>)<EOL>yield item<EOL><DEDENT>except queue.Empty:<EOL><INDENT>return<EOL><DEDENT><DEDENT>
Yields items from the settings queue.