U
if @ 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)BytesIOwrapsErrorPackerUnpackerConversionErrorc @ 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/python38/lib64/python3.8/xdrlib.py__init__ s zError.__init__c C s
t | jS r )reprr
r r r r
__repr__ s zError.__repr__c C s
t | jS 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 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
sF z | |W S t jk
r@ } zt|jd d W 5 d }~X Y nX d S Nr )structerrorr args)r valueefunctionr r
result&