관리-도구
편집 파일: codegen.cpython-37.pyc
B �C]� � @ s d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm Z dd lmZ d Z eddg�Zed dg��e�Zdddddddddde� fdd�ZG dd� de�ZG dd� de�ZG dd� de�Ze�d�Zdd� ZG dd� de�ZdS )zVprovides functionality for rendering a parsetree constructing into module source code.� N)�ast)�compat)� exceptions)�filters)� parsetree)�util)� PythonPrinter� Z UNDEFINEDZSTOP_RENDERING�context�loopTFc C sZ t jst|t j�r|�|�}t�� } t| �}t|t ||||||||| | ||�| � | � � S )z[Generate module source code given a parsetree node, uri, and optional source filename)r Zpy3k� isinstanceZ text_type�encoder ZFastEncodingBufferr �_GenerateRenderMethod�_CompileContext�getvalue)�node�uri�filename�default_filters�buffer_filters�imports�future_imports�source_encoding�generate_magic_comment�disable_unicode�strict_undefined�enable_loop�reserved_names�buf�printer� r �=/opt/alt/python37/lib/python3.7/site-packages/mako/codegen.py�compile s* r"