B
C] @ s
d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
dd lmZ d
Z
eddgZed
dgeZdddddddddde fddZG dd deZG dd deZG dd deZedZdd ZG dd deZdS )zVprovides functionality for rendering a parsetree constructing into module
source code. N)ast)compat)
exceptions)filters) parsetree)util)
PythonPrinter
Z UNDEFINEDZSTOP_RENDERINGcontextloopTFc
C sZ t jst|t jr||}t }
t|
}t|t ||||||||| |
||| |
S )z[Generate module source code given a parsetree node,
uri, and optional source filename)r Zpy3k
isinstanceZ text_typeencoder ZFastEncodingBufferr _GenerateRenderMethod_CompileContextgetvalue)nodeurifilenamedefault_filtersbuffer_filtersimportsfuture_importssource_encodinggenerate_magic_commentdisable_unicodestrict_undefinedenable_loopreserved_namesbufprinter r =/opt/alt/python37/lib/python3.7/site-packages/mako/codegen.pycompile s*
r"