Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/keystoneauth1/__pycache__/discover.cpython-39.pyc
Ðазад
a s�h� � @ s� d Z ddlZddlZddlZddlZddlZddlZddl m Z ddl mZ ej r^ddl mZ e�e�Zed�Ze�� Zejeeeejejeeef f Zeejeef df Zejeeef ed�d d �Zejeef ejeef d�dd�Zd;d eej e! ej e e"e#eej$f d�dd�Z%eed�dd�Z&d<ej e ej e ej e ej e eej e ej e f d�dd�Z'eed�dd�Z(ej e ej e ee!d�dd�Z)eee!d�dd�Z*ej e ee!d�dd �Z+eeed!�d"d#�Z,ej e ej e d$�d%d&�Z-G d'd(� d(�Z.G d)d*� d*�Z/G d+d,� d,e#eej$f �Z0G d-d.� d.�Z1d=d eej e#ee/f ej e! e/d0�d1d2�Z2G d3d4� d4�Z3e3� Z4e4�5d5e�6d6�d7� eej7e edd8�d9d:�Z8dS )>a� The passive components to version discovery. The Discover object in discover.py contains functions that can create objects on your behalf. These functions are not usable from within the keystoneauth1 library because you will get dependency resolution issues. The Discover object in this file provides the querying components of Discovery. This includes functions like url_for which allow you to retrieve URLs and the raw data specified in version discovery responses. � N)�_utils)� exceptions)�session�inf.)�val�returnc C s | t krdS t| �S )z�Convert val to a string, handling LATEST => 'latest'. :param val: An int or the special value LATEST. :return: A string representation of val. If val was LATEST, the return is 'latest'. �latest)�LATEST�str�r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/keystoneauth1/discover.py�_str_or_latest0 s r c C s | dks| t krt S t| �S )z�Convert val to an int or the special value LATEST. :param val: An int()-able, or the string 'latest', or the special value LATEST. :return: An int, or the special value LATEST r )r �intr r r r �_int_or_latest: s r �ks_session.Session)r �url� authenticated�version_headerr c C s� ddi}|r||d<