summaryrefslogtreecommitdiffstats
path: root/Demo/rpc/xdr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-04 18:39:03 (GMT)
committerGuido van Rossum <guido@python.org>1995-10-04 18:39:03 (GMT)
commitee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf (patch)
tree2dbcf4cfbc05c9987c38886ef52a3f2f74596699 /Demo/rpc/xdr.py
parent951213e8ca3fb25b6765dfbcd148b20584516894 (diff)
downloadcpython-ee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf.zip
cpython-ee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf.tar.gz
cpython-ee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf.tar.bz2
small fixes
Diffstat (limited to 'Demo/rpc/xdr.py')
-rw-r--r--Demo/rpc/xdr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/rpc/xdr.py b/Demo/rpc/xdr.py
index 0c5185e..109d2f9 100644
--- a/Demo/rpc/xdr.py
+++ b/Demo/rpc/xdr.py
@@ -69,7 +69,7 @@ class Packer:
self.pack_uint(n)
self.pack_fstring(n, s)
- pack_opaque = pack_string
+ pack_opaque = pack_fopaque
def pack_list(self, list, pack_item):
for item in list:
@@ -86,7 +86,7 @@ class Packer:
def pack_array(self, list, pack_item):
n = len(list)
self.pack_uint(n)
- self.pack_farray(n, list)
+ self.pack_farray(n, list, pack_item)
class Unpacker:
@@ -176,7 +176,7 @@ class Unpacker:
n = self.unpack_uint()
return self.unpack_fstring(n)
- unpack_opaque = unpack_string
+ unpack_opaque = unpack_fopaque
def unpack_list(self, unpack_item):
list = []