#NEWLINE# def reduce_permissions( permissions ) : #NEWLINE# #INDENT# for permission in PERMISSIONS [ : : ( - 1 ) ] : #NEWLINE# #INDENT# if ( permission in permission ) : #NEWLINE# #INDENT# return permission #NEWLINE# #UNINDENT# #UNINDENT# raise ValueError ( 'Permissions not in permissions list' )