ruạṛ
a [��f�) � @ s� d Z ddlZddlZddlZddlZddlZddlmZ dZejj Z ejj Z G dd� de�Zdd� Z d d � Zdd� Zddd�Zddd�Zdd� Zdd� Zdd� Zdd� Zd dd�ZdS )!z�Miscellaneous utilities. This module provides misc. utility functions for apps and the Falcon framework itself. These functions are hoisted into the front-door `falcon` module for convenience:: import falcon now = falcon.http_now() � N)�status_codes)� deprecated�http_now� dt_to_http�http_date_to_dt�to_query_str�get_bound_method�get_argnames�get_http_statusc @ s e Zd ZdS )�DeprecatedWarningN)�__name__� __module__�__qualname__� r r �t/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/falcon/util/misc.pyr 9 s r c s � fdd�}|S )a] Flags a method as deprecated. This function returns a decorator which can be used to mark deprecated functions. Applying this decorator will result in a warning being emitted when the function is used. Args: instructions (str): Specific guidance for the developer, e.g.: 'Please migrate to add_proxy(...)'' c s t �� �� �fdd��}|S )Nc sB d� � j��}t�� j}tj|tt�|j �|j d� � | i |��S )Nz)Call to deprecated function {0}(...). {1})�category�filename�lineno)�formatr �inspect�currentframe�f_back�warnings� warn_explicitr �getfile�f_code�f_lineno)�args�kwargs�message�frame)�func�instructionsr r �wrapperJ s � �z.deprecated.<locals>.decorator.<locals>.wrapper)� functools�wraps)r! r# �r"