File: //opt/alt/python37/lib64/python3.7/site-packages/guppy/etc/__pycache__/Glue.cpython-37.opt-1.pyc
B
    �]Z5  �               @   s�   d dl Z d dlZd dlZG dd� de�ZG dd� de�ZG dd� de�Zdd	� Zd
d� ZG dd
� d
e	�Z
G dd� d�ZG dd� d�ZG dd� d�Z
G dd� d�Zdd� ZdS )�    Nc               @   s   e Zd ZdS )�	GlueErrorN)�__name__�
__module__�__qualname__� r   r   �A/opt/alt/python37/lib64/python3.7/site-packages/guppy/etc/Glue.pyr      s   r   c               @   s   e Zd ZdS )�RecursionErrorN)r   r   r   r   r   r   r   r   
   s   r   c               @   s   e Zd ZdS )�NoSuchAttributeErrorN)r   r   r   r   r   r   r   r	      s   r	   c             C   s,   y
| j }W n tk
r   dS X t�d|�S )z� Determine if a module is a package - that means, sub-modules can be imported
    Currently uses that it has a file name that matches '.*__init__.py[co]?$'
    xxx is this portable/future-safe?
    r   z.*__init__.py[co]?$)�__file__�AttributeError�re�match)�m�namer   r   r   �	ispackage   s
    
r   c             C   s    | r|rd| |f S | | S d S )Nz%s.%sr   )�firstZlastr   r   r   �dotname   s    r   c               @   s,   e Zd Zdd� Zdd� Zdd� Zdd� Zd	S )
�	Interfacec             C   s<