From bd4bc29a97577d7b8901c78745217d3c229a60bd Mon Sep 17 00:00:00 2001 From: Adam Holmberg Date: Thu, 30 Jun 2016 15:03:19 -0500 Subject: [PATCH] cqle: remove special handling for bool in ValueQuoter now that cql_quote does not quote bool types, this is not needed PYTHON-596 --- cassandra/cqlengine/statements.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cassandra/cqlengine/statements.py b/cassandra/cqlengine/statements.py index 3867704a..44ae165e 100644 --- a/cassandra/cqlengine/statements.py +++ b/cassandra/cqlengine/statements.py @@ -35,9 +35,7 @@ class ValueQuoter(UnicodeMixin): def __unicode__(self): from cassandra.encoder import cql_quote - if isinstance(self.value, bool): - return 'true' if self.value else 'false' - elif isinstance(self.value, (list, tuple)): + if isinstance(self.value, (list, tuple)): return '[' + ', '.join([cql_quote(v) for v in self.value]) + ']' elif isinstance(self.value, dict): return '{' + ', '.join([cql_quote(k) + ':' + cql_quote(v) for k, v in self.value.items()]) + '}'