simple_lister: Extract common behavior in base class

This commit is contained in:
Antoine R. Dumont (@ardumont) 2019-10-05 16:49:37 +02:00
parent 61ce38a0b0
commit 04ca318680
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
5 changed files with 6 additions and 24 deletions

View file

@ -68,9 +68,3 @@ class PyPILister(ListerOnePageApiTransport, SimpleLister):
'origin_url': project_url,
'origin_type': 'pypi',
}
def transport_response_simplified(self, response):
"""(Override) Transform response to list for model manipulation
"""
return [self.get_model_from_repo(repo_name) for repo_name in response]