File manager - Edit - /opt/imunify360/venv/lib/python3.11/site-packages/imav/contracts/__pycache__/imunify_patch_id.cpython-311.pyc
Back
� ,|_jr8 � �� � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z m Z ddlmZ ddl mZ ddlmZmZmZ ddlmZmZmZmZ ddlZdd lmZ dd lmZ ddlmZ ddlm Z m!Z! dd l"m#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) dZ*dZ+dZ, ej- e.� � Z/ G d� d� � Z0 e0� � Z1 G d� de2� � Z3e4Z5de4de5fd�Z6 e � � de4de5dz fd�� � Z7 e d�� � de4fd�� � Z8de4defd�Z9de5fd�Z:d ede5dz fd!�Z;d ed"e5ddfd#�Z< e1d$�%� � de4de4dz fd&�� � Z=d'e4d(e>de4fd)�Z?e,fd*e>e4ef d+e@de>e4e>e4e@f f fd,�ZAdS )-u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � N)�defaultdict)� lru_cache�wraps)�islice)�Path)�Any�Callable� Coroutine)� parse_qsl� urlencode�urlparse� urlunparse)�IndependentAgentIDAPI)�PanelException)�HostingPanel)�log_error_and_ignore�safe_fileops)�ImunifyPatchSubscriptionAPI)�VulnerabilityAPI)�VulnerabilityHitStatus)�VulnerabilityHitz.imunify_patch_id� � c �2 � e Zd ZdZdZdZdZdZdZd� Z e dej fd �� � Z ed edefd�� � Zd ededz fd �Zd edededdfd�Zdd edz ddfd�Zefdedeeegeeeedz f f geegeeeedz f f f fd�ZdS )�PurchaseUrlCachea� Disk-based cache decorator for async functions. This class can be used as a decorator to cache results of async functions on disk with automatic expiration. The underlying diskcache.Cache is lazily initialized on first access to avoid import-time errors when the cache directory doesn't exist. Usage: @purchase_url_cache(ttl=3600) async def get_purchase_url(username: str) -> str | None: ... z#/var/imunify360/.cache/purchase_url� �purchase_url�<