Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/asttokens/__pycache__/line_numbers.cpython-39.pyc
Ðазад
a i�h � @ sD d dl Z d dlZd dlmZmZmZ e�dej�ZG dd� d�Z dS )� N)�Dict�List�Tuple�^c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )�LineNumbersaJ Class to convert between character offsets in a text string, and pairs (line, column) of 1-based line and 0-based column numbers, as used by tokens and AST nodes. This class expects unicode for input and stores positions in unicode. But it supports translating to and from utf8 offsets, which are used by ast parsing. c C s0 dd� t �|�D �| _|| _t|�| _i | _d S )Nc S s g | ]}|� d ��qS )r )�start)�.0�m� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/asttokens/line_numbers.py� <listcomp> � z(LineNumbers.__init__.<locals>.<listcomp>)�_line_start_re�finditer� _line_offsets�_text�len� _text_len�_utf8_offset_cache)�self�textr r r �__init__ s zLineNumbers.__init__c C s� | j �|�}|du rt|t| j�k r,| j| n| j}| j| j|d |� }dd� t|�D �}|�t|�� || j |<