Comment #3 on issue 3753 by [email protected]: CRITICAL: <lambda>()
keywords must be strings in RBTools 0.7.0
https://code.google.com/p/reviewboard/issues/detail?id=3753
I think this is caused by
https://github.com/reviewboard/rbtools/commit/8c8e4eb7a64be3da8df833608dc6b4f95ccc03e0
with python 2.6.
The problem is that lambda behavior has apparently changed between 2.6 and
2.7:
$ python2.7 -c "from __future__ import unicode_literals; x = lambda a='a',
b='b': a+b; print x(**{'a':'c', 'b':'d'})"
cd
$ python2.6 -c "from __future__ import unicode_literals; x = lambda a='a',
b='b': a+b; print x(**{'a':'c', 'b':'d'})"
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: <lambda>() keywords must be strings
Using python 2.7 fixes the problem. Not sure if rbtools is supposed to work
with 2.6 but if it is, the problem is here:
https://github.com/reviewboard/rbtools/blob/release-0.7.2/rbtools/commands/post.py#L402
review_requests.create is a lambda, it is being fed unicode literals.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.