#NEWLINE# @ property #NEWLINE# def escaped_repo_url( self ) : #NEWLINE# #INDENT# repo_url = re . sub ( '^.+?://' , '' , self . _processed_repo_url ) #NEWLINE# if repo_url . endswith ( '.git' ) : #NEWLINE# #INDENT# repo_url = repo_url [ : ( - 4 ) ] #NEWLINE# #UNINDENT# trans = str . maketrans ( ':/-.' , '____' ) #NEWLINE# repo_url = repo_url . translate ( trans ) . lower ( ) #NEWLINE# return re . sub ( '_+' , '_' , self )