ofc@sdZddlmZmZdZdd dYZdddYZdZed krdd l Z dd lm Z mZxHe j d D]6Z e GHe e Z eZee eejGHHqWnd S(sParser for future statements i(tasttwalkcCs1t|tjsdS|jdkr)dSdSdS(s:Return true if statement is a well-formed future statementit __future__iN(t isinstanceRtFromtmodname(tstmt((s'/usr/lib64/python2.7/compiler/future.pyt is_futures t FutureParsercBs2eZd ZdZdZd Zd ZRS( t nested_scopest generatorstdivisiontabsolute_importtwith_statementtprint_functiontunicode_literalscCs i|_dS(N(tfound(tself((s'/usr/lib64/python2.7/compiler/future.pyt__init__scCs4|j}x$|jD]}|j|sPqqWdS(N(tnodetnodest check_stmt(RRRts((s'/usr/lib64/python2.7/compiler/future.pyt visitModules cCsct|r_xC|jD]8\}}||jkrAd|j|s