B
Mj @ sx d Z ddlZddlmZ ddlmZ ddddgZG d d deZG d
d deZ dd Z
G d
d dZG dd dZdS )zRImplements (a subset of) Sun XDR -- eXternal Data Representation.
See: RFC 1014
N)BytesIO)wrapsErrorPackerUnpackerConversionErrorc @ s( e Zd ZdZdd Zdd Zdd ZdS ) r zException 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/python37/lib64/python3.7/xdrlib.py__init__ s zError.__init__c C s
t | jS )N)reprr )r r
r
r __repr__ s zError.__repr__c C s
t | jS )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 Zd ZdS )r N)r r r r
r
r
r r s c s t fdd}|S )z5 Wrap any raised struct.errors in a ConversionError. c
sD y
| |S t jk
r> } zt|jd d W d d }~X Y nX d S )Nr )structerrorr args)r valuee)functionr
r result&