#NEWLINE# @ property #NEWLINE# def port( self ) : #NEWLINE# #INDENT# parse_uri = urlparse ( self . uri ) #NEWLINE# port = parse_uri . port #NEWLINE# if ( port is None ) : #NEWLINE# #INDENT# port = { #NEWLINE# #INDENT# 'https' : 443 , #NEWLINE# 'http' : 80 , #NEWLINE# #UNINDENT# } [ parse_uri . scheme ] #NEWLINE# #UNINDENT# return port