mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-04 11:43:03 +03:00
Simplify Boolean
This commit is contained in:
parent
53c1c5dcc1
commit
2f3c233f38
|
@ -6,7 +6,7 @@ class B(object):
|
||||||
print "ga called", attr
|
print "ga called", attr
|
||||||
return object.__getattribute__(self, attr)
|
return object.__getattribute__(self, attr)
|
||||||
def _sqlquote(self):
|
def _sqlquote(self):
|
||||||
if self._o == True:
|
if self._o:
|
||||||
return 'It is True'
|
return 'It is True'
|
||||||
else:
|
else:
|
||||||
return 'It is False'
|
return 'It is False'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user