Your IP : 216.73.216.213
B
���]Dn � @ sz d dl Z d dlZd dlmZmZ eZe j�dd�Z ej
d dkrNd dlmZ nd dl
mZ G dd� de�ZG d d
� d
e�ZG dd� de�ZG d
d� de�Zeddd�ZG dd� de�ZG dd� de�ZG dd� d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d!� d!e�ZG d"d#� d#e�ZG d$d%� d%e�ZG d&d'� d'e�Z i Z!d/d)d*�Z"d0d+d,�Z#d1d-d.�Z$dS )2� N)�
CO_VARARGS�CO_VARKEYWORDS�repr�reprlib� )�format_exception_onlyc @ sR e Zd ZdZdd� Zdd� Zdd� Zedd � �Zed
d� �Z dd
� Z
ddd�ZdS )�Codez$ wrapper around Python code objects c C sd t |d�stj�|�}y |j| _|jd | _|j| _ W n" t
k
rX td|f ��Y nX || _d S )N�co_filename� znot a code object: %r)
�hasattr�py�code�
getrawcoder �filename�co_firstlineno�firstlineno�co_name�name�AttributeError� TypeError�raw)�selfZrawcode� r �>/opt/alt/python37/lib/python3.7/site-packages/py/_code/code.py�__init__ s
z
Code.__init__c C s | j |j kS )N)r )r �otherr r r �__eq__ s zCode.__eq__c C s
| |k S )Nr )r r r r r �__ne__ s zCode.__ne__c C s$ t j�| jj�}|�� s | jj}|S )zs return a path object pointing to source code (note that it
might not point to an actually existing file). )r �path�localr r �check)r �pr r r r ! s z Code.pathc C s ddl m} |�| j�\}}|S )zM return a py.code.Source object for the full source file of the code
r )�source)�py._coder"