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
@@ -135,8 +135,7 @@ def _python_to_stub_names(names, fallback_to_python=False):
if converted:
converted_names = converted.goto(name.get_public_name())
if converted_names:
for n in converted_names:
yield n
yield from converted_names
continue
if fallback_to_python:
# This is the part where if we haven't found anything, just return