<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
ž
¬ÿf–  c               @   si   d  Z  d d l m Z d d l m Z d d l m Z d d l m Z m Z Gd d „  d e j	 ƒ Z
 d S(	   u&  Fixer for has_key().

Calls to .has_key() methods are expressed in terms of the 'in'
operator:

    d.has_key(k) -> k in d

CAVEATS:
1) While the primary target of this fixer is dict.has_key(), the
   fixer will change any has_key() method call, regardless of its
   class.

2) Cases like this will not be converted:

    m = d.has_key
    if m(k):
        ...

   Only *calls* to has_key() are converted. While it is possible to
   convert the above to something like

    m = d.__contains__
    if m(k):
        ...

   this is currently not done.
i   (   u   pytree(   u   token(   u
   fixer_base(   u   Nameu   parenthesizec             B   s,   |  Ee  Z d  Z d Z d Z d d „  Z d S(   u	   FixHasKeyu•  
    anchor=power<
        before=any+
        trailer< '.' 'has_key' >
        trailer<
            '('
            ( not(arglist | argument<any '=' any>) arg=any
            | arglist<(not argument<any '=' any>) arg=any ','>
            )
            ')'
        >
        after=any*
    >
    |
    negation=not_test<
        'not'
        anchor=power<
            before=any+
            trailer< '.' 'has_key' >
            trailer<
                '('
                ( not(arglist | argument<any '=' any>) arg=any
                | arglist<(not argument<any '=' any>) arg=any ','>
                )
                ')'
            >
        >
    >
    c             C   s=  | s t  ‚ |  j } | j j | j k rC |  j j | j ƒ rC d  S| j d ƒ } | d } | j	 } d d „  | d Dƒ } | d j
 ƒ  } | j d ƒ }	 |	 r· d d „  |	 Dƒ }	 n  | j | j | j | j | j | j | j | j f k rÿ t | ƒ } n  t | ƒ d	 k r| d
 } n t j | j | ƒ } d | _	 t d d d ƒ}
 | r„t d d d ƒ} t j | j | |
 f ƒ }
 n  t j | j | |
 | f ƒ } |	 rÙt | ƒ } t j | j | f t |	 ƒ ƒ } n  | j j | j | j | j | j | j | j | j | j | j f	 k r0t | ƒ } n  | | _	 | S(   Nu   negationu   anchorc             S   s   g  |  ] } | j  ƒ  ‘ q S(    (   u   clone(   u   .0u   n(    (    u>   /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_has_key.pyu
   <listcomp>S   s   	 u'   FixHasKey.transform.<locals>.<listcomp>u   beforeu   argu   afterc             S   s   g  |  ] } | j  ƒ  ‘ q S(    (   u   clone(   u   .0u   n(    (    u>   /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_has_key.pyu
   <listcomp>W   s   	 i   i    u    u   inu   prefixu   not(    u   AssertionErroru   symsu   parentu   typeu   not_testu   patternu   matchu   Noneu   getu   prefixu   cloneu
   comparisonu   and_testu   or_testu   testu   lambdefu   argumentu   parenthesizeu   lenu   pytreeu   Nodeu   poweru   Nameu   comp_opu   tupleu   expru   xor_expru   and_expru
   shift_expru
   arith_expru   termu   factor(   u   selfu   nodeu   resultsu   symsu   negationu   anchoru   prefixu   beforeu   argu   afteru   n_opu   n_notu   new(    (    u>   /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_has_key.pyu	   transformH   sF    	
	!	%	u   FixHasKey.transformNT(   u   __name__u
   __module__u   __qualname__u   Trueu   BM_compatibleu   PATTERNu	   transform(   u
   __locals__(    (    u>   /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_has_key.pyu	   FixHasKey'   s   u	   FixHasKeyN(   u   __doc__u    u   pytreeu   pgen2u   tokenu
   fixer_baseu
   fixer_utilu   Nameu   parenthesizeu   BaseFixu	   FixHasKey(    (    (    u>   /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_has_key.pyu   <module>   s
   