관리-도구
편집 파일: compat.cpython-37.pyc
B �C] � @ s� d dl Z d dlZd dlZejdkZejdk ZejdkZej�d�Z ej�d�Z eed�Ze � dd d ddg�Zd d� Zer�d dlmZ d dlZd dlmZmZ d dlmZmZ efZeZeZd dlmZ dd� Z!dd� Z"dd� Z#n|d dl$Zyd dl%mZ W n d dlmZ Y nX eZ d dl&mZmZ d dl'mZmZ e(fZeZe)Zdd� Z!dd� Z"dd� Z#e�rxd dl*m+Z+ dd� Z,nd dl-Z-dd� Z,e�r�d+d d!�Z.ne/d"� d#d$� Z0e1Z1d%d&� Z2e3fd'd(�Z4d)d*� Z5dS ),� N)� r )r )� � �java�winZpypy_version_info�ArgSpec�args�varargs�keywords�defaultsc C s� t �| �r| j} t �| �s(td�| ���| j}t �|�sFtd�|���|j}|j }t r\|jnd}t|d|� �}||7 }d}|j t j@ r�|j | }|d }d}|j t j@ r�|j | }t|||| j�S )zBgetargspec based on fully vendored getfullargspec from Python 3.3.z{!r} is not a Python functionz{!r} is not a code objectr N� )�inspect�ismethod�__func__� isfunction� TypeError�format�__code__�iscode�co_argcount�co_varnames�py3k�co_kwonlyargcount�list�co_flags� CO_VARARGS�CO_VARKEYWORDSr �__defaults__)�func�co�nargs�names�nkwargsr r �varkw� r$ �</opt/alt/python37/lib/python3.7/site-packages/mako/compat.py�inspect_getargspec s( r&