summaryrefslogtreecommitdiffstats
path: root/Demo/rpc
diff options
context:
space:
mode:
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)