def parse_socket_info(cls, info):
		""" Parse string that is formed like '[address]<:port>' and return corresponding
		:class:`.WIPV4ScketInfo` object

		:param info: string to parse

		:return: WIPV4ScketInfo
		"""
		info = info.split(':')
		if len(info) > 2:
			raise ValueError('Incorrect socket info specified')
		address = info[0].strip()
		port = int(info[1].strip()) if len(info) == 2 else None
		return WIPV4SocketInfo(address=address, port=port)
def parse_socket_info ( cls , info ) : info = info . split ( ':' ) if len ( info ) > 2 : raise ValueError ( 'Incorrect socket info specified' ) address = info [ 0 ] . strip ( ) port = int ( info [ 1 ] . strip ( ) ) if len ( info ) == 2 else None return WIPV4SocketInfo ( address = address , port = port )
Parse string that is formed like '[address]<:port>' and return corresponding
		:class:`.WIPV4ScketInfo` object

		:param info: string to parse

		:return: WIPV4ScketInfo