File: //proc/self/root/opt/alt/python35/lib64/python3.5/__pycache__/xdrlib.cpython-35.pyc
��Yf  �               @   s�   d  Z  d d l Z d d l m Z d d l m Z d d d d g Z Gd	 d �  d e � Z Gd
 d �  d e � Z	 d d �  Z
 Gd
 d �  d � Z Gd d �  d � Z d S)zRImplements (a subset of) Sun XDR -- eXternal Data Representation.
See: RFC 1014
�    N)�BytesIO)�wraps�Error�Packer�Unpacker�ConversionErrorc               @   s:   e  Z d  Z d Z d d �  Z d d �  Z d d �  Z d S)	r   z�Exception class for this module. Use:
    except xdrlib.Error as var:
        # var has the Error instance for the exception
    Public ivars:
        msg -- contains the message
    c             C   s
   | |  _  d  S)N)�msg)�selfr   � r
   �+/opt/alt/python35/lib64/python3.5/xdrlib.py�__init__   s    zError.__init__c             C   s
   t  |  j � S)N)�reprr   )r	   r
   r
   r   �__repr__   s    zError.__repr__c             C   s
   t  |  j � S)N)�strr   )r	   r
   r
   r   �__str__   s    z
Error.__str__N)�__name__�
__module__�__qualname__�__doc__r   r   r   r
   r
   r
   r   r      s   	c               @   s   e  Z d  Z d S)r   N)r   r   r   r
   r
   r
   r   r       s   c                s"