golden hour
/opt/saltstack/salt/lib/python3.10/site-packages/salt/defaults/__pycache__
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.cpython-310.pyc
1.89 KB
Del
OK
events.cpython-310.pyc
569 B
Del
OK
exitcodes.cpython-310.pyc
864 B
Del
OK
Edit: __init__.cpython-310.pyc
o �xed � @ s$ d Z G dd� d�ZdZ ed�ZdS )z� Default values, to be imported elsewhere in Salt code Do NOT, import any salt modules (salt.utils, salt.config, etc.) into this file, as this may result in circular imports. c @ sF e Zd ZdZdZddd�Zdd� Zdd � Zd d� Zdd � Z dd� Z dS )� _Constanta, This class implements a way to create constants in python. NOTE: - This is not really a constant, ie, the `is` check will not work, you'll have to use `==`. - This class SHALL NOT be considered public API and might change or even go away at any given time. ��name�valueNc C s || _ || _d S �Nr )�selfr r � r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/defaults/__init__.py�__init__ s z_Constant.__init__c C s t | j| jf�S r )�hashr r �r r r r �__hash__ s z_Constant.__hash__c C s, t || j�sdS | j|jkrdS | j|jkS )NF)� isinstance� __class__r r )r �otherr r r �__eq__ s z_Constant.__eq__c C s | j | jd�S )Nr r r r r r � __get_state__% s �z_Constant.__get_state__c C s | � |d |d �S )Nr r )r )r �stater r r � __set_state__+ s z_Constant.__set_state__c C s"