File: //opt/alt/python37/lib/python3.7/site-packages/jsons/__pycache__/_extra_impl.cpython-37.pyc
B
�P�e� � @ s� d Z ddlmZ ddlmZ ddlmZmZ defee ee d�dd�Z
efeee d �d
d�Zedefe ee e d
�dd��Z
dS )z�
PRIVATE MODULE: do not import (from) it directly.
This module contains implementations that do not directly touch the core of
jsons.
� )�Optional)�cached)�StateHolder�get_class_nameT)�do_suppress� fork_instc C s
| |_ dS )z�
Suppress (or stop suppressing) warnings altogether.
:param do_suppress: if ``True``, warnings will be suppressed from now on.
:param fork_inst: if given, it uses this fork of ``JsonSerializable``.
:return: None.
N)Z_suppress_warnings)r r � r �B/opt/alt/python37/lib/python3.7/site-packages/jsons/_extra_impl.py�suppress_warnings
s r
)�coder c C s | j | hO _ dS )a
Suppress a specific warning that corresponds to the given code (see the
warning).
:param code: the code of the warning that is to be suppressed.
:param fork_inst: if given, it uses this fork of ``JsonSerializable``.
:return: None.
N)Z_suppressed_warnings)r r r r r �suppress_warning s
r N)�cls�cls_namer c C s( |pt | dd�}||j| <