관리-도구
편집 파일: pyfiles.cpython-311.pyc
� �܋f. � � � d dl mZ d dlZd dlmZ d dlZd dlZd dlZd dlZd dl Z d dl Z d dlmZ d dl mZ d dlmZ ddlmZ dd lmZ dd�Zdd�Zdd�Zdd�Zdd�ZdS ) � )�annotationsN)� ExitStack)�Optional)� exceptions)�Template� )�compat)�CommandError� template_file�str�dest�output_encoding�return�Nonec � � t | �� � } |j di |��� |� � }t |d� � 5 }|� |� � d d d � � d S # 1 swxY w Y d S # t j dd�� � 5 }|� t j � � � � � � |� � � � |j }d d d � � n# 1 swxY w Y t d|z � � �xY w)N)�filename�wbz.txtF)�suffix�deletezDTemplate rendering failed; see %s for a template-oriented traceback.� )r �render_unicode�encode�open�write�tempfile�NamedTemporaryFiler �text_error_template�namer ) r r r �kw�template�output�f�ntf�fnames �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/alembic/util/pyfiles.py�template_to_filer&