Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/mercurial/__pycache__/ |
Upload File : |
o �]Lb � @ 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/lib/python3/dist-packages/mercurial/httpconnection.py�__init__&