#NEWLINE# def get_server_number( ipport , ipport2server ) : #NEWLINE# #INDENT# server_number = ipport2server [ server_number ] #NEWLINE# ( server , number ) = ( server_number [ : ( - 1 ) ] , server_number [ ( - 1 ) : ] ) #NEWLINE# try : #NEWLINE# #INDENT# number = int ( number ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# return ( server_number , None ) #NEWLINE# #UNINDENT# return ( server , number )