modifying statement, clause, and operator stringifying to encode the object's unicode
This commit is contained in:
@@ -15,7 +15,7 @@ class BaseQueryOperator(object):
|
|||||||
return self.cql_symbol
|
return self.cql_symbol
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(unicode(self))
|
return unicode(self).encode('utf-8')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_operator(cls, symbol):
|
def get_operator(cls, symbol):
|
||||||
|
@@ -15,7 +15,7 @@ class BaseClause(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(unicode(self))
|
return unicode(self).encode('utf-8')
|
||||||
|
|
||||||
def get_context_size(self):
|
def get_context_size(self):
|
||||||
""" returns the number of entries this clause will add to the query context """
|
""" returns the number of entries this clause will add to the query context """
|
||||||
@@ -95,7 +95,7 @@ class BaseCQLStatement(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(unicode(self))
|
return unicode(self).encode('utf-8')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _where(self):
|
def _where(self):
|
||||||
|
Reference in New Issue
Block a user