Explicit test for None.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-14 19:52:04 +00:00
1 parent 7c3dc1de84
commit eae219de6f
1 file changed
+3 -3
+3 -3
View File
@@ -138,10 +138,10 @@ class xstransact:
raise TypeError
else:
(key, val, fmt) = tup
if val:
self._write(key, fmt % val)
else:
if val is None:
self._remove(key)
else:
self._write(key, fmt % val)
def Read(cls, path, *args):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.