Skip to content

Commit b41a9c9

Browse files
committed
Fix Python 2.7 compatability
1 parent c36e1cf commit b41a9c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

faculty/experiment.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def _get_runs():
109109
client = ExperimentClient(session)
110110

111111
response = client.query_runs(project_id, filter, sort)
112-
yield from map(cls._from_client_model, response.runs)
112+
for run in response.runs:
113+
yield cls._from_client_model(run)
113114

114115
while response.pagination.next is not None:
115116
response = client.query_runs(
@@ -119,7 +120,8 @@ def _get_runs():
119120
start=response.pagination.next.start,
120121
limit=response.pagination.next.limit,
121122
)
122-
yield from map(cls._from_client_model, response.runs)
123+
for run in response.runs:
124+
yield cls._from_client_model(run)
123125

124126
return ExperimentRunList(_get_runs())
125127

0 commit comments

Comments
 (0)