Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pygit2/__pycache__/refspec.cpython-39.pyc
Ðазад
a n�hc � @ s: d dl mZ d dlmZmZ d dlmZ G dd� d�ZdS )� )�check_error)�ffi�C)�to_bytesc @ s| e Zd ZdZdd� Zedd� �Zedd� �Zedd � �Zed d� �Z edd � �Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )�Refspecz.The constructor is for internal use only. c C s || _ || _d S )N)�_owner�_refspec)�self�owner�ptr� r �~/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pygit2/refspec.py�__init__$ s zRefspec.__init__c C s t �t�| j���d�S )zSource or lhs of the refspec�utf-8)r �stringr Zgit_refspec_srcr �decode�r r r r �src( s zRefspec.srcc C s t �t�| j���d�S )z Destinaton or rhs of the refspecr )r r r Zgit_refspec_dstr r r r r r �dst- s zRefspec.dstc C s t t�| j��S )z4Whether this refspeca llows non-fast-forward updates)�boolr Zgit_refspec_forcer r r r r �force2 s z Refspec.forcec C s t �t�| j���d�S )z,String which was used to create this refspecr )r r r Zgit_refspec_stringr r r r r r r 7 s zRefspec.stringc C s t �| j�S )z)Direction of this refspec (fetch or push))r Zgit_refspec_directionr r r r r � direction<