From cab37e29aded1ac5019fc925863773aa22236d5f Mon Sep 17 00:00:00 2001 From: Nathan Gillett Date: Wed, 27 Nov 2019 13:23:50 -0500 Subject: [PATCH] Remove unnecessary calls from search_repository_content result --- pubtools/pulplib/_impl/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubtools/pulplib/_impl/client/client.py b/pubtools/pulplib/_impl/client/client.py index 281fc4a6..b31194fc 100644 --- a/pubtools/pulplib/_impl/client/client.py +++ b/pubtools/pulplib/_impl/client/client.py @@ -231,7 +231,7 @@ def search_repository_content(self, repository_id, type_ids, criteria=None): criteria=criteria, type_ids=validate_type_ids(type_ids), ) - return [unit for unit in search_f.result().as_iter()] + return [unit for unit in search_f] def search_distributor(self, criteria=None): """Search the distributors matching the given criteria.