File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/gitdb/db/__pycache__/base.cpython-310.pyc
Back
o ;je# � @ s� d Z ddlmZmZmZ ddlmZ ddlmZm Z ddl mZ ddlm Z dZG dd � d �ZG d d� d�ZG dd � d �ZG dd� d�Zdd� ZG dd� deee�ZdS )z8Contains implementations of database retrieveing objects� )�join� LazyMixin� hex_to_bin)� force_text)� BadObject�AmbiguousObjectName)�chain)�reduce)� ObjectDBR� ObjectDBW� FileDBBase� CompoundDB� CachingDBc @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dS )r zkDefines an interface for object database lookup. Objects are identified either by their 20 byte bin shac C � | j S �N)Zhas_obj��self�sha� r �A/opt/saltstack/salt/lib/python3.10/site-packages/gitdb/db/base.py�__contains__ s zObjectDBR.__contains__c C � t d��)z� Whether the object identified by the given 20 bytes binary sha is contained in the database :return: True if the object identified by the given 20 bytes binary sha is contained in the database�To be implemented in subclass��NotImplementedErrorr r r r � has_object"