From 2f3c233f389fc895f65cca8168b2dd6da016a8bb Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 28 Nov 2017 10:25:09 +0200 Subject: [PATCH] Simplify Boolean --- sandbox/pbool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/pbool.py b/sandbox/pbool.py index 35ca760c..817e3ea0 100644 --- a/sandbox/pbool.py +++ b/sandbox/pbool.py @@ -6,7 +6,7 @@ class B(object): print "ga called", attr return object.__getattribute__(self, attr) def _sqlquote(self): - if self._o == True: + if self._o: return 'It is True' else: return 'It is False'