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
|
||||
|
||||
def __str__(self):
|
||||
return str(unicode(self))
|
||||
return unicode(self).encode('utf-8')
|
||||
|
||||
@classmethod
|
||||
def get_operator(cls, symbol):
|
||||
|
@@ -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):
|
||||
|
Reference in New Issue
Block a user