³ò
C3IHc           @   s7   d  d k  l Z d  d k l Z d d d „  ƒ  YZ d S(   iÿÿÿÿ(   t   parents(   t   astt   Filec           B   sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s1   | |  _  d  |  _ h  |  _ d  |  _ g  |  _ d  S(   N(   t   namet   Nonet	   parseTreet   scopest
   root_scopet   warnings(   t   selfR   (    (    s%   C:\py\_spe\plugins\pychecker2\File.pyt   __init__   s
    				c         C   s   t  |  i | i ƒ S(   N(   t   cmpR   (   R	   t   other(    (    s%   C:\py\_spe\plugins\pychecker2\File.pyt   __cmp__   s    c         G   sz   t  | d | ƒ } | oC t | d ƒ o3 x0 t | ƒ D] } | i o | i } Pq7 q7 Wn |  i i | | | f ƒ d  S(   Nt   linenot   parent(   t   getattrt   hasattrR    R   R   t   append(   R	   t   linet   warnt   argsR   t   p(    (    s%   C:\py\_spe\plugins\pychecker2\File.pyt   warning   s     
	c         C   s@   g  } |  i  i ƒ  D]% } t | d | ƒ o | | q q ~ S(   Ni    (   R   t	   iteritemst
   isinstance(   R	   t   typet   _[1]t   x(    (    s%   C:\py\_spe\plugins\pychecker2\File.pyt   scope_filter   s    c         C   s   |  i  t i ƒ S(   N(   R   R   t   Function(   R	   (    (    s%   C:\py\_spe\plugins\pychecker2\File.pyt   function_scopes   s    c         C   s   |  i  t i ƒ S(   N(   R   R   t   Class(   R	   (    (    s%   C:\py\_spe\plugins\pychecker2\File.pyt   class_scopes   s    c         C   sT   g  } xG |  i  i ƒ  D]6 \ } } t | t i ƒ p | i | | f ƒ q q W| S(   N(   R   R   R   R   R    R   (   R	   t   resultt   nt   s(    (    s%   C:\py\_spe\plugins\pychecker2\File.pyt   not_class_scopes"   s     (	   t   __name__t
   __module__R
   R   R   R   R   R!   R%   (    (    (    s%   C:\py\_spe\plugins\pychecker2\File.pyR      s   							N(    (   t   pychecker2.utilR    t   compilerR   R   (    (    (    s%   C:\py\_spe\plugins\pychecker2\File.pys   <module>   s   