3
T'íc5 ã . @ sn U d Z ddlZddlmZmZmZmZmZ ejd%kr>ddl Z n.yddl
mZ W n ek
rj ddl Z Y nX e j
de jde jd e jd
e jde jde jd
e jde jde jde jde jde jde jde jde jde jde jde jdiZ eee j! e"f d&e"e"ddddZ#ed'de"dddd Z$ed(e j!e"e"dd!d Z$d)ee j! e"ee" dd"d Z$G d#d$ d$e j%Z&dS )*z'Helpers for AST (Abstract Syntax Tree).é N)ÚDictÚListÚOptionalÚTypeÚoverloadé é )Úast3ú+Úandú&ú|ú^ú/z//ú~z<<ú@Ú*ú%Únotz**Úorz>>ú-Úexeczast.AST)ÚcodeÚmodeÚreturnc C sP yt j| |ddS tk
r. t j| |dS tk
rJ t j| |dS X dS )z{Parse the *code* using the built-in ast or typed_ast libraries.
This enables "type_comments" feature if possible.
T)r Z
type_comments)r N)ÚastÚparseÚSyntaxErrorÚ TypeError)r r © r ú3/tmp/pip-build-gk9425m9/sphinx/sphinx/pycode/ast.pyr '