Try to use yield from instead of yield, if possible

This commit is contained in:
Dave Halter committed 2020-07-19 13:34:58 +02:00
1 parent 5bc174bf8d
commit 9957565b37
21 files changed
+49 -97

No files matched your search

+1 -2
View File
@@ -166,8 +166,7 @@ def _get_paths_from_buildout_script(inference_state, buildout_script_path):
string_names=None,
code_lines=get_cached_code_lines(inference_state.grammar, str(buildout_script_path)),
).as_context()
for path in check_sys_path_modifications(module_context):
yield path
yield from check_sys_path_modifications(module_context)
def _get_parent_dir_with_file(path: Path, filename):