mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Explicit test for None.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
7c3dc1de84
commit
eae219de6f
1 file changed
+3
-3
@@ -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):
|
||||
|
||||