+
    ,i  c                   sD    ^RI Ht ^RIHtHt ^RIHt  ! R R]4      tR# )i   )DiffResultDescriptor)
DifferenceSymbolWrapper)	policyrepc                   s   a  ] tR t^t o RtV 3R lR lt]]P                  ,          ! ]4      t	]]P                  ,          ! ]4      t
V 3R lR ltRtV tR# )PolCapsDifferencez9Determine the difference in polcaps between two policies.c                   < V ^8  d   QhRR/# i   ZreturnN Zformat__classdict__   ":/usr/lib64/python3.14/site-packages/setools/diff/polcap.py__annotate__PolCapsDifference.__annotate__   s     E Ed E    c                s,   V P                   P                  RV P                   RV P                   24       V P	                  R V P                  P                  4        4       R V P                  P                  4        4       4      w  V n        V n        pR# )z8Generate the difference in polcaps between the policies.z'Generating policy cap differences from z to c              3   8   "   T F  p\        V4      x  K  	  R # 5iNr   Z.0Zn   & r   	<genexpr>1PolCapsDifference.diff_polcaps.<locals>.<genexpr>   s     B'A!]1'A   c              3   r   r   r   r   r   r   r   r      s     C'B!]1'Br   N)logZinfoZleft_policyZright_policyZ	_set_diffZpolcapsadded_polcapsremoved_polcaps)selfZ_r   r   diff_polcapsZPolCapsDifference.diff_polcaps   s     	5d6F6F5GtDL]L]K^_	a 7;nnBt'7'7'?'?'ABCt'8'8'@'@'BC7E3D0!r   c                r   r   r   r   r
   r   r   r      s     ! !T !r   c                sD    V P                   P                  R4       V =V =R# )z%Reset diff results on policy changes.z'Resetting policy capability differencesN)r   Zdebugr   r   )r   s   &r   _reset_diffZPolCapsDifference._reset_diff   s    @A r   )r   r   N)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r    r   ZPolicyCapabilityr   r   r   Z__static_attributes__Z__classdictcell__)r	   s   @r   r   r      sJ     CE E ))C)CD\RM*9+E+EF|TO
! !r   r   N)Zdescriptorsr    Z
differencer   r   Z r   r   r   r   r   <module>r      s   
 . 1 !
 !r   