File: //home/arjun/projects/env/lib/python3.10/site-packages/coverage/__pycache__/python.cpython-310.pyc
o
!we� � @ s& d Z ddlmZ ddlZddlZddlZddlmZm Z m
Z
mZmZ ddl
mZ ddlmZmZ ddlmZmZmZ ddlmZmZmZ dd lmZ dd
lmZmZ ddlm Z ddl!m"Z"m#Z#m$Z$m%Z% erldd
l
m&Z& ee�Zd!dd�Z'd"dd�Z(d#dd�Z)d"dd�Z*d$dd�Z+G dd � d e �Z,dS )%z'Python source expertise for coverage.py� )�annotationsN)�Dict�Iterable�Optional�Set�
TYPE_CHECKING)�env)�CoverageException�NoSource)�canonical_filename�relative_filename�zip_location)� expensive�isolate_module�
join_regex)�PythonParser)�source_token_lines�source_encoding)�FileReporter)�TArc�TLineNo�TMorf�TSourceTokenLines)�Coverage�filename�str�return�bytesc C sF t | d��}|�� }W d � n1 sw Y |�dd��dd�S )zFRead the Python source text from `filename`.
Returns bytes.
�rbNs
�
�
)�open�read�replace)r �f�source� r&