@@ -227,7 +227,7 @@ class CBServer(rpc.RPCServer):
cbid = cmp4args.callback_ident
except XDRError:
return NFS4ERR_BADXDR, [], tag
- if cmp4args.minorversion <> 0:
+ if cmp4args.minorversion != 0:
return NFS4ERR_MINOR_VERS_MISMATCH, [], tag
results = []
ok = NFS4_OK
@@ -239,7 +239,7 @@ class CBServer(rpc.RPCServer):
resop4 = CB_ILLEGAL4res(NFS4ERR_OP_ILLEGAL)
result = nfs_cb_resop4(resop=OP_ILLEGAL, opcbillegal=resop4)
results += [ result ]
- if ok <> NFS4_OK:
+ if ok != NFS4_OK:
break
return ok, results, tag
@@ -171,7 +171,7 @@ class NFS4Server(rpc.RPCServer):
return NFS4ERR_BADXDR, [], tag
print("TCP NFSv4 COMPOUND call, tag: %s, n_ops: %d" % \
(repr(tag), len(cmp4args.argarray)))
- if cmp4args.minorversion <> 0:
+ if cmp4args.minorversion != 0:
return NFS4ERR_MINOR_VERS_MISMATCH, [], tag
if not verify_utf8(tag):
return NFS4ERR_INVAL, [], tag
@@ -183,7 +183,7 @@ class NFS4Server(rpc.RPCServer):
print("*** %s (%d) ***" % (opname, op.argop))
ok, result = getattr(self, opname.lower())(op)
results += [ result ]
- if ok <> NFS4_OK:
+ if ok != NFS4_OK:
print(" ! error %s" % nfsstat4[ok])
break
print("Replying. Status %s (%d)" % (nfsstat4[ok], ok))
@@ -177,7 +177,7 @@ class NFS4Client(rpc.Client, rpc.Server):
def op_cb_compound(self, args, cred):
env = CompoundState(args, cred)
# Check for problems with the compound itself
- if args.minorversion <> 0:
+ if args.minorversion != 0:
if args.minorversion not in self.minor_versions:
env.results.set_empty_return(NFS4ERR_MINOR_VERS_MISMATCH)
return env