#NEWLINE# @ wrap_exceptions #NEWLINE# def connections( self , kind = 'inet' ) : #NEWLINE# #INDENT# ret = net_connections ( kind , _pid = self . pid ) #NEWLINE# if ( not ret ) : #NEWLINE# #INDENT# os . stat ( ( '%s/%s' % ( self . _procfs_path , self . pid ) ) ) #NEWLINE# #UNINDENT# if ( kind in ( 'all' , 'unix' ) ) : #NEWLINE# #INDENT# ret . extend ( [ _common . pconn ( * conn ) for conn in self . _get_unix_sockets ( self . pid ) ] ) #NEWLINE# #UNINDENT# return ret