[d-feet] Show values that have a logical False representation.
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-feet] Show values that have a logical False representation.
- Date: Mon, 14 Aug 2017 11:05:33 +0000 (UTC)
commit cf4d19881505c130e4a96e3126a534f9cd384380
Author: Benjamin Berg <bberg redhat com>
Date: Tue May 23 18:55:24 2017 +0200
Show values that have a logical False representation.
Correctly test whether a value has been retrieved (not None) instead of
testing whether the value is logically True to decide on showing it.
https://bugzilla.gnome.org/show_bug.cgi?id=783006
src/dfeet/introspection_helper.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dfeet/introspection_helper.py b/src/dfeet/introspection_helper.py
index 348b772..68e3cd6 100644
--- a/src/dfeet/introspection_helper.py
+++ b/src/dfeet/introspection_helper.py
@@ -86,7 +86,7 @@ class DBusProperty(DBusInterface):
s = "%s %s <small>(%s)</small>" % (
args_signature_markup(sig),
args_name_markup(self.property_info.name), " / ".join(readwrite))
- if self.value:
+ if self.value is not None:
s += " = %s" % (self.value,)
return s
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]