| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/asttokens/__pycache__/ |
Upload File : |
�
�\c � �r � d dl Z d dlZd dlmZmZmZ ej dej � � Z G d� de � � Z
dS )� N)�Dict�List�Tuple�^c �* � e Zd ZdZd� Zd� Zd� Zd� ZdS )�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 � � d� t � |� � D � � | _ || _ t |� � | _ i | _ d S )Nc �8 � g | ]}|� d � � ��S )r )�start)�.0�ms �8/usr/lib/python3/dist-packages/asttokens/line_numbers.py�
<listcomp>z(LineNumbers.__init__.<locals>.<listcomp> s"