)]}'
{"ceilometerclient/tests/test_utils.py":[{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"f4e960e2a081ac232496dda25a4dfcff2cfc30a4","unresolved":false,"context_lines":[{"line_number":78,"context_line":"            # py2 prints str type, py3 prints unicode type"},{"line_number":79,"context_line":"            if six.PY2:"},{"line_number":80,"context_line":"                expected \u003d expected.encode(\u0027utf-8\u0027)"},{"line_number":81,"context_line":"            self.assertEqual(expected, stdout.getvalue())"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def test_print_list(self):"},{"line_number":84,"context_line":"        class Foo(object):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_9fea8b0d","line":81,"updated":"2015-02-10 21:04:21.000000000","message":"can you just put six.text_type(expected)?","commit_id":"f1f452405a80884c7a9cd78cad4aa4d73e290745"},{"author":{"_account_id":6676,"name":"zqfan","email":"aji.zqfan@gmail.com","username":"aji-zqfan"},"change_message_id":"06c3e7613f082034c7ca1a87e5ecfd50781f74a6","unresolved":false,"context_lines":[{"line_number":78,"context_line":"            # py2 prints str type, py3 prints unicode type"},{"line_number":79,"context_line":"            if six.PY2:"},{"line_number":80,"context_line":"                expected \u003d expected.encode(\u0027utf-8\u0027)"},{"line_number":81,"context_line":"            self.assertEqual(expected, stdout.getvalue())"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def test_print_list(self):"},{"line_number":84,"context_line":"        class Foo(object):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_d86414bb","line":81,"in_reply_to":"da86d52c_9fea8b0d","updated":"2015-02-11 01:33:55.000000000","message":"No, I cannot\n\nsix.text_type is unicode in py2 and str in py3, it is not the actual output type. And we cannot apply it to stdou.getvalue() to unify result to unicode, since in py2, the output contains nonascii character, so it will raise UnicodeDecodeError\n\nsix.string_types is not callable, and six.binary_type doesn\u0027t suit the case since it is bytes in py3","commit_id":"f1f452405a80884c7a9cd78cad4aa4d73e290745"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"5cf1fd36ce825e8282ca4681c0545cb59ff7e582","unresolved":false,"context_lines":[{"line_number":78,"context_line":"            # py2 prints str type, py3 prints unicode type"},{"line_number":79,"context_line":"            if six.PY2:"},{"line_number":80,"context_line":"                expected \u003d expected.encode(\u0027utf-8\u0027)"},{"line_number":81,"context_line":"            self.assertEqual(expected, stdout.getvalue())"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    def test_print_list(self):"},{"line_number":84,"context_line":"        class Foo(object):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_5b1807d3","line":81,"in_reply_to":"da86d52c_d86414bb","updated":"2015-02-11 14:52:52.000000000","message":"so just to clarify, does this mean stdout will print different output depending on whether we use py2 or py3?... because that doesn\u0027t sound like a good thing.","commit_id":"f1f452405a80884c7a9cd78cad4aa4d73e290745"}]}
