modifying statement, clause, and operator stringifying to encode the object's unicode

This commit is contained in:
Blake Eggleston
2013-10-25 17:20:50 -07:00
parent 1810024863
commit 647ebaf5f0
2 changed files with 3 additions and 3 deletions

View File

@@ -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):

View File

@@ -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):