Skip to content

Commit 92e1db8

Browse files
1 parent 1c9f830 commit 92e1db8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎google/api_core/rest_helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ def _flatten_value(obj, key_path, strict=False):
8181

8282

8383
def _flatten_dict(obj, key_path, strict=False):
84-
items = (_flatten(value, key_path=key_path + [key], strict=strict) for key, value in obj.items())
84+
items = (
85+
_flatten(value, key_path=key_path + [key], strict=strict)
86+
for key, value in obj.items()
87+
)
8588
return functools.reduce(operator.concat, items, [])
8689

8790

0 commit comments

Comments
 (0)