def version_downloads(self):
        """Return a dictionary of version:download_count pairs."""
        ret = OrderedDict()
        for release, info in self.release_info:
            download_count = sum(file_['downloads'] for file_ in info)
            ret[release] = download_count
        return ret
def version_downloads ( self ) : ret = OrderedDict ( ) for release , info in self . release_info : download_count = sum ( file_ [ 'downloads' ] for file_ in info ) ret [ release ] = download_count return ret
Return a dictionary of version:download_count pairs.