Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 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 �+�bW � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z ddl mZ ddlm Z ddlmZmZmZmZmZ zd dlZej W n ey� d dlZY n0 e�d�ZejZejZejZejZejZejZej Z ej!Z!ej"Z"ej#Z#ej$Z$ej%j&Z&ej'Z'ej(Z(dZ)G d d � d e*�Z+G dd� de*�Z,dcdd�Z-ej.Z.dd� Z/dd� Z0G dd� de*�Z1dd� Z2dd� Z3dd� Z4dd� Z5ddd d!�Z6d"d#� Z7d$d%� Z8d&d'� Z9d(d)� Z:d*d+� Z;d,d-� Z<d.d/� Z=e�>d0�Z?e�>d1�Z@d2d3� ZAejBjCZDejEZFd4d5� ZGd6d7� ZHdaIdaJd8d9� ZKd:d;� ZLd<d=� ZMd>d?� ZNd@dA� ZOejPejQhZRdBdC� ZSdedDdE�ZTdfdFdG�ZUdHdI� ZVdJdK� ZWdLdM� ZXdNdO� ZYdPdQ� ZZdRdS� Z[G dTdU� dUe*�Z\dgdVdW�Z]dXZ^dYdZ� Z_d[d\� Z`d]d^� Zad_d`� Zbdadb� ZcdS )h� )�absolute_importN� )�_)�getattr)�encoding�error�policy�pycompat�win32�osutil� c @ s| e Zd ZdZdZdZdZdd� Zdd� Zd d � Z dd� Z d d� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� ZdS )�mixedfilemodewrappera) Wraps a file handle when it is opened in read/write mode. fopen() and fdopen() on Windows have a specific-to-Windows requirement that files opened with mode r+, w+, or a+ make a call to a file positioning function when switching between reads and writes. Without this extra call, Python will raise a not very intuitive "IOError: [Errno 0] Error." This class wraps posixfile instances when the file is opened in read/write mode and automatically adds checks or inserts appropriate file positioning calls when necessary. r r � c C s t �| d|� t �| dd� d S )N�_fp�_lastopr )�object�__setattr__��self�fp� r �7/usr/lib64/python3.9/site-packages/mercurial/windows.py�__init__J s zmixedfilemodewrapper.__init__c C s | j �� | S �N�r � __enter__�r r r r r N s zmixedfilemodewrapper.__enter__c C s | j �|||� d S r �r �__exit__)r �exc_typeZexc_valZexc_tbr r r r R s zmixedfilemodewrapper.__exit__c C s t | j|�S r �r r �r �namer r r �__getattr__U s z mixedfilemodewrapper.__getattr__c C s | j �||�S r )r r )r r"