/
lib64
/
python3.9
/
site-packages
/
mercurial
/
__pycache__
/
Upload File
HOME
a �+�b � @ sp d dl mZ d dlZddlmZ ddlmZ ddlmZmZ ddl m Z ejZejZG dd � d e �Zd d� ZdS )� )�absolute_importN� )�_)�open)�pycompat�util)�urlutilc @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �httpsendfilez�This is a wrapper around the objects returned by python's "open". Its purpose is to send file-like objects via HTTP. It do however not define a __len__ attribute because the length might be more than Py_ssize_t can handle. c O s\ || _ t|i |��| _| jj| _| jj| _| jj| _t�| j�� �j | _ d| _| �� | _ d S )Nr )�uir �_data�seek�close�write�os�fstat�fileno�st_size�length�_pos� _makeprogress� _progress)�selfr �args�kwargs� r �>/usr/lib64/python3.9/site-packages/mercurial/httpconnection.py�__init__&