summaryrefslogtreecommitdiffstats
path: root/Demo/rpc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-08-29 04:39:12 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-08-29 04:39:12 (GMT)
commit3bd844e695c8295c23d64d816bd763543cc9728f (patch)
tree5c8ae0b247d082498a3e9c02e1eeca9af6a1f0c2 /Demo/rpc
parentc4996ba794d9438be8e472ad5f6c3c55fbf751e8 (diff)
downloadcpython-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')
-rw-r--r--Demo/rpc/nfsclient.py2
-rw-r--r--Demo/rpc/xdr.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Demo/rpc/nfsclient.py b/Demo/rpc/nfsclient.py
index c4387b4..8e5a199 100644
--- a/Demo/rpc/nfsclient.py
+++ b/Demo/rpc/nfsclient.py
@@ -163,7 +163,7 @@ class NFSClient(UDPClient):
ra = (dir, 0, 2000)
while 1:
(status, rest) = self.Readdir(ra)
- if status <> NFS_OK:
+ if status != NFS_OK:
break
entries, eof = rest
last_cookie = None
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)