summaryrefslogtreecommitdiffstats
path: root/Demo/rpc/mountclient.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-03-29 15:24:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-03-29 15:24:25 (GMT)
commit5b63acd31e0e40c1a9a9e9762905b0054ff37994 (patch)
tree763a6e10d4c0fa64797f5311491a3cbeb0f7e5d9 /Demo/rpc/mountclient.py
parent672fbf519568bc295aa64992dcbabe0eebccb5fc (diff)
downloadcpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.zip
cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.gz
cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.bz2
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
Diffstat (limited to 'Demo/rpc/mountclient.py')
-rw-r--r--Demo/rpc/mountclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/rpc/mountclient.py b/Demo/rpc/mountclient.py
index 318a9d9..4e8d92a 100644
--- a/Demo/rpc/mountclient.py
+++ b/Demo/rpc/mountclient.py
@@ -100,7 +100,7 @@ class PartialMountClient:
# This function is called to cough up a suitable
# authentication object for a call to procedure 'proc'.
def mkcred(self):
- if self.cred == None:
+ if self.cred is None:
self.cred = rpc.AUTH_UNIX, rpc.make_auth_unix_default()
return self.cred