AlkantarClanX12
Current Path : /opt/alt/python37/lib/python3.7/site-packages/raven/utils/__pycache__/ |
Current File : //opt/alt/python37/lib/python3.7/site-packages/raven/utils/__pycache__/compat.cpython-37.pyc |
B ��Y, � @ s� d Z ddlmZ ddlZddlZddlZejd dkZejd dkZerde fZ efZe fZe ZeZn efZ eefZe ejfZeZe ZyeZW n ek r� dd� ZY nX eZyeZW n ek r� dd � ZY nX er�eZnG d d� de�Ze�rdd � Zdd� Zdd� Zdd� Zn dd � Zdd� Zdd� Zdd� Ze�rbdd� Z dd� Z!ddl"Z"e"j#Z#e"j$Z$n"dd� Z dd� Z!ddl#Z#e#j# Z#Z$e�r�e%e&d�d�Z'd3d d!�Z(nd4d"d#�Z'e'd$� ejdd� d%k�r�e'd&� n&ejdd� d%k�r�e'd'� nd(d)� Z)e�rJdd*l*m+Z+ dd+l,m-Z. ddl/m0Z1 dd,l2m3Z3 dd-l4m5Z6 dd.l7m8Z9 n<dd*l1m+Z+ ddl.Z.ddl1Z1dd,l3m3Z3 dd-l7m5Z6 ddl9Z9d/d0� Z:d1d2� Z;dS )5z� raven.utils.compat ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2016 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. Utilities for writing code that runs on Python 2 and 3 � )�absolute_importN� � c C s | � � S )N)�next)�it� r �C/opt/alt/python37/lib/python3.7/site-packages/raven/utils/compat.py�advance_iterator: s r c C s t dd� t| �jD ��S )Nc s s | ]}d |j kV qdS )�__call__N)�__dict__)�.0�klassr r r � <genexpr>C s zcallable.<locals>.<genexpr>)�any�type�__mro__)�objr r r �callableB s r c @ s e Zd Zdd� ZdS )�Iteratorc C s t | ��| �S )N)r �__next__)�selfr r r r J s z Iterator.nextN)�__name__� __module__�__qualname__r r r r r r H s r c K s t | jf |��S )N)�iter�keys)�d�kwr r r �iterkeysO s r c K s t | jf |��S )N)r �values)r r r r r � itervaluesR s r c K s t | jf |��S )N)r �items)r r r r r � iteritemsU s r"