diff --git a/cqlengine/operators.py b/cqlengine/operators.py index cbbfe4ad..4fef0a6b 100644 --- a/cqlengine/operators.py +++ b/cqlengine/operators.py @@ -15,7 +15,7 @@ class BaseQueryOperator(object): return self.cql_symbol def __str__(self): - return str(unicode(self)) + return unicode(self).encode('utf-8') @classmethod def get_operator(cls, symbol): diff --git a/cqlengine/statements.py b/cqlengine/statements.py index 9aa6e7fe..45124c76 100644 --- a/cqlengine/statements.py +++ b/cqlengine/statements.py @@ -15,7 +15,7 @@ class BaseClause(object): raise NotImplementedError def __str__(self): - return str(unicode(self)) + return unicode(self).encode('utf-8') def get_context_size(self): """ returns the number of entries this clause will add to the query context """ @@ -95,7 +95,7 @@ class BaseCQLStatement(object): raise NotImplementedError def __str__(self): - return str(unicode(self)) + return unicode(self).encode('utf-8') @property def _where(self):