From 42e8c093b74ac578ef75c6f3aefdbea7f46478e1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 15 Aug 2012 12:14:39 +0100 Subject: python: Fix optargs so we don't use special sentinel values. Previously with Python it was impossible to set a boolean or integer optarg to -1 because that was used as a special sentinel value to indicate that the optarg was not set. Instead, use None as the sentinel value, since that cannot be a boolean or integer type. --- python/t/060-optargs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/t/060-optargs.py b/python/t/060-optargs.py index ae2d934d..241185bb 100644 --- a/python/t/060-optargs.py +++ b/python/t/060-optargs.py @@ -20,6 +20,6 @@ import guestfs g = guestfs.GuestFS() g.add_drive ("/dev/null") -g.add_drive ("/dev/null", readonly = 1) +g.add_drive ("/dev/null", readonly = True) g.add_drive ("/dev/null", iface = "virtio", format = "raw") g.close () -- cgit