diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-29 04:39:12 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-29 04:39:12 (GMT) |
commit | 3bd844e695c8295c23d64d816bd763543cc9728f (patch) | |
tree | 5c8ae0b247d082498a3e9c02e1eeca9af6a1f0c2 /Demo/rpc/xdr.py | |
parent | c4996ba794d9438be8e472ad5f6c3c55fbf751e8 (diff) | |
download | cpython-3bd844e695c8295c23d64d816bd763543cc9728f.zip cpython-3bd844e695c8295c23d64d816bd763543cc9728f.tar.gz cpython-3bd844e695c8295c23d64d816bd763543cc9728f.tar.bz2 |
Get rid of most of the remaining uses of <>. There's still Tools/* thogh.
Diffstat (limited to 'Demo/rpc/xdr.py')
-rw-r--r-- | Demo/rpc/xdr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/rpc/xdr.py b/Demo/rpc/xdr.py index df5cbaf..e03b352 100644 --- a/Demo/rpc/xdr.py +++ b/Demo/rpc/xdr.py @@ -78,7 +78,7 @@ class Packer: self.pack_uint(0) def pack_farray(self, n, list, pack_item): - if len(list) <> n: + if len(list) != n: raise ValueError, 'wrong array size' for item in list: pack_item(item) @@ -183,7 +183,7 @@ class Unpacker: while 1: x = self.unpack_uint() if x == 0: break - if x <> 1: + if x != 1: raise RuntimeError, '0 or 1 expected, got %r' % (x, ) item = unpack_item() list.append(item) |