| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/__pycache__/ |
Upload File : |
a
d � @ st d Z ddlZddlmZ ddlmZ g d�ZG dd� de�ZG dd � d e�Z d
d� Z
G dd
� d
�ZG dd� d�ZdS )zRImplements (a subset of) Sun XDR -- eXternal Data Representation.
See: RFC 1014
� N)�BytesIO��wraps)�Error�Packer�Unpacker�ConversionErrorc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) 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 �/usr/lib/python3.9/xdrlib.py�__init__ s zError.__init__c C s
t | j�S r )�reprr
�r r r r
�__repr__ s zError.__repr__c C s
t | j�S r )�strr
r r r r
�__str__ s z
Error.__str__N)�__name__�
__module__�__qualname__�__doc__r r r r r r r
r s r c @ s e Zd ZdS )r N)r r r r r r r
r s r c s t � �� fdd��}|S )z5 Wrap any raised struct.errors in a ConversionError. c
sH z� | |�W S t jyB } zt|jd �d �W Y d }~n
d }~0 0 d S �Nr )�struct�errorr �args)r �value�e��functionr r
�result&