| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/mercurial/__pycache__/ |
Upload File : |
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__&