#NEWLINE# def check_ipc_path_max_len( uri ) : #NEWLINE# #INDENT# if ( not HAS_ZMQ ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ipc_path_max_len = getattr ( zmq , 'IPC_PATH_MAX_LEN' , 103 ) #NEWLINE# if ( ipc_path_max_len and ( len ( uri ) > ipc_path_max_len ) ) : #NEWLINE# #INDENT# raise SaltSystemExit ( 'The socket path is longer than allowed by OS. \'{0}\' is longer than {1} characters. Either try to reduce the length of this setting\'s path or switch to TCP; in the configuration file, set "ipc_mode: tcp".' . format ( uri , ipc_path_max_len ) )