관리-도구
편집 파일: base.cpython-311.pyc
� �܋f� � �< � d Z ddlmZ ddlZddlZddlZddlmZmZm Z m Z mZmZm Z ddlmZ ddlmZ ddlmZ d Zd � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Z!er G d!� d"e� � Z" ej# e� � ej# e� � ej# e� � ej# e� � ej# e� � ej# e� � ej# e� � ej# e� � ej# e � � ej# e!� � er ej# e"� � dS dS )#z� raven.utils.serializer.base ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importN)� text_type�binary_type�string_types� iteritems�class_types�PY2�PY3)� to_unicode� ��manager�� is_namedtuple)� Serializerc �j � t | � d� � � � S # t $ r Y dS w xY w)N� __sentry__F)�callable�__getattribute__� Exception)�values �R/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/utils/serializer/base.py�has_sentry_metadatar sE � ����.�.�|�<�<�=�=�=��� � � ��u�u����s �!$ � 2�2c �, � e Zd ZdZd� Zd� Zd� Zd d�ZdS ) r � c � � || _ d S �Nr )�selfr s r �__init__zSerializer.__init__# s � ������ c �, � t || j � � S �z| Given ``value``, return a boolean describing whether this serializer can operate on the given type )� isinstance�types�r r s r �canzSerializer.can&