+
    $i  c                   s    ^ RI t ^RIHt  ! R R]4      t ! R R]4      t ! R R]4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      t	R t
R tR tR# )    N)PolicySyntaxErrorc                   s    ] tR t^
tRtR# )ScopeSyntaxError N)__name__
__module____qualname____firstlineno____static_attributes__r       D/usr/share/crypto-policies/python/cryptopolicies/validation/scope.pyr   r   
   s    r	   r   c                   s2   a a ] tR t^t oV 3R ltRtVtV ;t# )ScopeUnknownErrorc                s,   < \         SV `  R V 24       R# )zunknown scope NZsuper__init__)selfZ
scope_glob	__class__   &&r
   r   ZScopeUnknownError.__init__   s    >*67r	   r   r   r   r   r   r   r   Z__classdictcell__Z__classcell__r   Z__classdict__   @@r
   r   r      s     8 8r	   r   c                   s2   a a ] tR t^t oV 3R ltRtVtV ;t# )ScopeSelectorEmptyErrorc                s&   < \         SV `  R 4       R# )zempty scope selectorNr   )r   r   s   &r
   r   Z ScopeSelectorEmptyError.__init__   s    /0r	   r   r   r   r   r
   r   r      s     1 1r	   r   c                   s2   a a ] tR t^t oV 3R ltRtVtV ;t# )"ScopeSelectorIllegalCharacterErrorc                .   < \         SV `  R V R24       R# )z%illegal character in scope selector ``Nr   )r   Zselectorr   r   r
   r   Z+ScopeSelectorIllegalCharacterError.__init__   s    @
!LMr	   r   r   r   r   r
   r   r      s     N Nr	   r   c                   s2   a a ] tR t^t oV 3R ltRtVtV ;t# )ScopeSelectorCurlyBracketsErrorc                r   )z%unsupported curly brackets usage in `r   Nr   r   Zpatternr   r   r
   r   Z(ScopeSelectorCurlyBracketsError.__init__   s    @	KLr	   r   r   r   r   r
   r   r      s     M Mr	   r   c                   s2   a a ] tR t^"t oV 3R ltRtVtV ;t# )ScopeSelectorCommaErrorc                r   )zunsupported comma usage in `r   Nr   r   r   r
   r   Z ScopeSelectorCommaError.__init__#   s    7yBCr	   r   r   r   r   r
   r   r   "   s     D Dr	   r   c                   s2   a a ] tR t^'t oV 3R ltRtVtV ;t# ) ScopeSelectorMatchedNothingErrorc                r   )zscope selector `z` matches no scopeNr   r   r   r
   r   Z)ScopeSelectorMatchedNothingError.__init__(   s    +G94FGHr	   r   r   r   r   r
   r   r   '   s     I Ir	   r   c                 s    \         ;QJ d    R  V  4       F  '       d   K   RM	  RM! R  V  4       4      '       g   \        V4      hR# )c              3   sZ   "   T F!  qP                  4       ;'       g    VR 9   x  K#  	  R# 5i)z{,}*_-N)Zisalnum).0Zc   & r
   	<genexpr>Z%illegal_characters.<locals>.<genexpr>-   s#     7Qyy{++a8m+Qs   ++FTN)Zallr   Zporiginal_pattern   &&r
   illegal_charactersr"   ,   s4    37Q73337Q77701ABB 8r	   c                 s&   V P                  R 4      V P                  R4      3R9  g]   V P                  R 4      '       d   V P                  R4      '       d/   V P                  R 4      '       g%   V P                  R4      '       d   \        V4      hR# R# )Z{Z}N>   )r    r    )   r#   )ZcountZ
startswithZendswithr   r   r!   r
   curly_bracketsr$   1   sj    	
qwws|$,<<S!!!**S//LL%%!**S//-.>?? +:%r	   c                 s0   \         ;QJ d    R  V  4       F  '       g   K   RM	  RM! R  V  4       4      '       d   \        V4      hV  FJ  pV'       g   \        h\        P                  ! W4      '       d   K/  RV9   d   \        V4      h\        V4      h	  R# )c              3   s,   "   T F
  pR V9   x  K  	  R# 5i)Z,Nr   )r   gr   r
   r   Z"resulting_globs.<locals>.<genexpr>9   s     
#U3!8Us   TFZ*N)Zanyr   r   fnmatchZfilterr   r   )ZglobsZ
all_scopesr    r%   s   &&& r
   resulting_globsr'   8   sn    
s
#U
#sss
#U
###%&677))~~j,,ax6q99#A&& r	   )r&   Zgeneralr   r   r   r   r   r   r   r   r"   r$   r'   r   r	   r
   <module>r(      s   
  &	( 	8( 8
1. 1
N)9 N
M&6 M
D. D
I'7 I
C
@	'r	   