관리-도구
편집 파일: warnings.cpython-39.opt-1.pyc
a �)g� � @ sR d dl mZmZmZ eZd dlmZ g Zg Z dd� Z ddd�Zdd � Zd d� Z dS ) � )�absolute_import�division�print_function)�string_typesc C s* t | t�rt�| � ntdt| � ��d S )Nzwarn requires a string not a %s)� isinstancer �_global_warnings�append� TypeError�type)Zwarning� r �H/usr/lib/python3.9/site-packages/ansible/module_utils/common/warnings.py�warn s r Nc C sN t | t�r:|d ur&t�| ||d�� qJt�| ||d�� ntdt| � ��d S )N)�msg�date�collection_name)r �versionr z$deprecate requires a string not a %s)r r �_global_deprecationsr r r )r r r r r r r � deprecate s r c C s t t�S )z<Return a tuple of warning messages accumulated over this run)�tupler r r r r �get_warning_messages! s r c C s t t�S )z8Return a tuple of deprecations accumulated over this run)r r r r r r �get_deprecation_messages&