Try to use yield from instead of yield, if possible
This commit is contained in:
1 parent
5bc174bf8d
commit
9957565b37
21 files changed
+49
-97
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user