File: //lib/python3.12/__pycache__/bisect.cpython-312.pyc
�
    )!�h_
  �                   �j   � d Z d	dd�d�Zd	dd�d�Zd	dd�d�Zd	dd�d�Z	 ddl� eZeZy# e$ r Y �w xY w)
zBisection algorithms.�    N��keyc                �v   � |�t        | |||�      }nt        |  ||�      |||��      }| j                  ||�       y)a7  Insert item x in list a, and keep it sorted assuming a is sorted.
    If x is already in a, insert it to the right of the rightmost x.
    Optional args lo (default 0) and hi (default len(a)) bound the
    slice of a to be searched.
    A custom key function can be supplied to customize the sort order.
    Nr   )�bisect_right�insert��a�x�lo�hir   s        �/usr/lib/python3.12/bisect.py�insort_rightr      s<