3 �^C � @ sL d dl mZ ddlmZ ddlmZmZ eddddg�ZG d d � d e�ZdS )� )� namedtuple� )�DiffResultDescriptor)� Difference� SymbolWrapperZmodified_common�added_perms� removed_perms� matched_permsc @ s8 e Zd ZdZed�Zed�Zed�Zdd� Zdd� Z dS )�CommonDifferencezV Determine the difference in common permission sets between two policies. �diff_commonsc C s� | j jdj| �� | jdd� | jj� D �dd� | jj� D ��\| _| _}t � | _ xD|D ]<\}}| j|j|jdd�\}}}|s�|rVt|||�| j |<