Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib64/python3.6/site-packages/rhsmlib/__pycache__/ |
Upload File : |
3 a�eQ � @ s8 d dl mZmZmZ d dlZdd� ZG dd� de�ZdS )� )�print_function�division�absolute_importNc s � fdd�}|S )a- Decorator of singleton __init__ method. When the __init__ method will be wrapped using this decorator, then the __init__ method will be called only once, when the first instance is created. :param init_method: the __init__ method of singleton object :return: wrapper function c s� t | �dkr�| d }t|d�dks4tdj|jd���t|d�dksTtdj|jd���|jjdd� z|jdkrrd S � | |� W d d|_|jj� X ntd ��d S ) Nr �_initializedTz1The {cls} does not include _initialized attribute)�cls�_lockz*The {cls} does not include _lock attribute)�blockingz2The wrapper method was called without any argument) �len�hasattr�AssertionError�format� __class__r �acquirer �release)�args�kwargs�self)�init_method� �/usr/lib64/python3.6/utils.py�wrapper"