diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2011-03-27 16:30:07 +0100 |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2011-03-27 16:30:07 +0100 |
commit | 79a9036d0988749c22294c33894342044878542e (patch) | |
tree | 960754c060bcb0718aaf6bb8692d9060436d2b13 /Lib/xdrlib.py | |
parent | ea8e2083f85ded16d5bee1c0b9f4ed89dda31a25 (diff) | |
parent | 92b60d55d9115af9661618d7d24da929f181be68 (diff) | |
download | cpython-git-79a9036d0988749c22294c33894342044878542e.tar.gz |
Merge #9696
Diffstat (limited to 'Lib/xdrlib.py')
-rw-r--r-- | Lib/xdrlib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/xdrlib.py b/Lib/xdrlib.py index b293e06a10..4e48677040 100644 --- a/Lib/xdrlib.py +++ b/Lib/xdrlib.py @@ -50,7 +50,9 @@ class Packer: def pack_uint(self, x): self.__buf.write(struct.pack('>L', x)) - pack_int = pack_uint + def pack_int(self, x): + self.__buf.write(struct.pack('>l', x)) + pack_enum = pack_int def pack_bool(self, x): |