# HG changeset patch # User Julien Cristau # Date 1417449041 -3600 # Node ID 8f3783dc63588f217ffc341c5fb09f06e6ea4f26 # Parent ae9e23cf8790b2e0e4387995f15953f0859eb92a Don't pass an encoding to rqlst.as_string() diff -r ae9e23cf8790 -r 8f3783dc6358 rset.py --- a/rset.py Sun Jul 27 14:57:51 2014 +0200 +++ b/rset.py Mon Dec 01 16:50:41 2014 +0100 @@ -372,7 +372,7 @@ if encoded is not _MARKER: warn('[3.21] the "encoded" argument is deprecated', DeprecationWarning) encoding = self.req.encoding - rqlstr = self.syntax_tree().as_string(encoding, self.args) + rqlstr = self.syntax_tree().as_string(kwargs=self.args) # sounds like we get encoded or unicode string due to a bug in as_string if not encoded: if isinstance(rqlstr, unicode): diff -r ae9e23cf8790 -r 8f3783dc6358 server/ssplanner.py --- a/server/ssplanner.py Sun Jul 27 14:57:51 2014 +0200 +++ b/server/ssplanner.py Mon Dec 01 16:50:41 2014 +0100 @@ -249,7 +249,7 @@ raise QueryError('can not assign to %r relation' % relation.r_type) lhs, rhs = relation.get_variable_parts() - lhskey = lhs.as_string('utf-8') + lhskey = lhs.as_string() if not lhskey in selectedidx: if lhs.variable in eidconsts: eid = eidconsts[lhs.variable] @@ -262,7 +262,7 @@ selectedidx[lhskey] = lhsinfo else: lhsinfo = selectedidx[lhskey][:-1] + (None,) - rhskey = rhs.as_string('utf-8') + rhskey = rhs.as_string() if not rhskey in selectedidx: if isinstance(rhs, Constant): rhsinfo = (_CONSTANT, rhs.eval(plan.args), residx)