source: trunk/essentials/dev-lang/python/Lib/xdrlib.py@ 3226

Last change on this file since 3226 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 7.2 KB
Line 
1"""Implements (a subset of) Sun XDR -- eXternal Data Representation.
2
3See: RFC 1014
4
5"""
6
7import struct
8try:
9 from cStringIO import StringIO as _StringIO
10except ImportError:
11 from StringIO import StringIO as _StringIO
12
13__all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
14
15# exceptions
16class Error(Exception):
17 """Exception class for this module. Use:
18
19 except xdrlib.Error, var:
20 # var has the Error instance for the exception
21