AlkantarClanX12
Current Path : /opt/alt/python27/lib64/python2.7/compiler/ |
Current File : //opt/alt/python27/lib64/python2.7/compiler/future.pyo |
� ^ bc @ s� d Z d d l m Z m Z d � Z d d d � � YZ d d d � � YZ d � Z e d k r� d d l Z d d l m Z m Z xH e j d D]6 Z e GHe e � Z e � Z e e e � e j GHHq� Wn d S( s Parser for future statements i����( t astt walkc C s1 t | t j � s d S| j d k r) d Sd Sd S( s: Return true if statement is a well-formed future statementi t __future__i N( t isinstanceR t Fromt modname( t stmt( ( s4 /opt/alt/python27/lib64/python2.7/compiler/future.pyt is_future s t FutureParserc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( t nested_scopest generatorst divisiont absolute_importt with_statementt print_functiont unicode_literalsc C s i | _ d S( N( t found( t self( ( s4 /opt/alt/python27/lib64/python2.7/compiler/future.pyt __init__ s c C s4 | j } x$ | j D] } | j | � s Pq q Wd S( N( t nodet nodest check_stmt( R R R t s( ( s4 /opt/alt/python27/lib64/python2.7/compiler/future.pyt visitModule s c C sc t | � r_ xC | j D]8 \ } } | | j k rA d | j | <q t d | � q Wd | _ d Sd S( Ni s future feature %s is not definedi ( R t namest featuresR t SyntaxErrort valid_future( R R t namet asname( ( s4 /opt/alt/python27/lib64/python2.7/compiler/future.pyR s c C s | j j � S( s4 Return list of features enabled by future statements( R t keys( R ( ( s4 /opt/alt/python27/lib64/python2.7/compiler/future.pyt get_features+ s ( R R R R R R R ( t __name__t __module__R R R R R ( ( ( s4 /opt/alt/python27/lib64/python2.7/compiler/future.pyR s t BadFutureParserc B s e Z d Z d � Z RS( s# Check for invalid future statementsc C s= t | d � r d S| j d k r&