def pull_yaml(args, source): """ Pull YAML resources from a file-like object. """ for dct in load_all(source): for item in dct.items(): yield item