#NEWLINE# def score_url( self , url ) : #NEWLINE# #INDENT# '\n        Give an url a score which can be used to choose preferred URLs\n        for a given project release.\n        ' #NEWLINE# t = urlparse ( url ) #NEWLINE# return ( ( t . scheme != 'https' ) , ( 'pypi.python.org' in t . netloc ) , posixpath . basename ( t . path ) )