)]}'
{"openstack_dashboard/dashboards/project/access_and_security/api_access/views.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"25fdb32a989d2c5ab9f96cc8fc3c2277a7b76b99","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        tenant_name \u003d context[\u0027tenant_name\u0027]"},{"line_number":143,"context_line":"        tenant_name \u003d tenant_name and tenant_name.encode(\u0027utf-8\u0027)"},{"line_number":144,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d ("},{"line_number":145,"context_line":"            \u0027attachment; filename\u003d\"%s-openrc.sh\"\u0027 % tenant_name)"},{"line_number":146,"context_line":"        response[\u0027Content-Length\u0027] \u003d str(len(response.content))"},{"line_number":147,"context_line":"        return response"},{"line_number":148,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9a061dce_2c10674e","line":145,"updated":"2016-04-04 10:02:38.000000000","message":"Hmm.... this does not work for python3.\nin python3, byte and string are different.\n\n  $ python3\n  Python 3.4.3+ (default, Oct 14 2015, 16:03:50) \n  [GCC 5.2.1 20151010] on linux\n  Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n  \u003e\u003e\u003e s \u003d \u0027ああ\u0027   \u003c--- Japanese string\n  \u003e\u003e\u003e s.encode(\u0027utf-8\u0027)\n  b\u0027\\xe3\\x81\\x82\\xe3\\x81\\x82\u0027\n  \u003e\u003e\u003e \u0027%s\u0027 % s.encode(\u0027utf-8\u0027)\n  \"b\u0027\\\\xe3\\\\x81\\\\x82\\\\xe3\\\\x81\\\\x82\u0027\"\n\nI think it is not what you expect.","commit_id":"8106fe6dba810c1690e1898cf328831b4a0d7f9a"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"b10af73d23689c8907e21aec9c7100206124d6e2","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        tenant_name \u003d context[\u0027tenant_name\u0027]"},{"line_number":143,"context_line":"        tenant_name \u003d tenant_name and tenant_name.encode(\u0027utf-8\u0027)"},{"line_number":144,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d ("},{"line_number":145,"context_line":"            \u0027attachment; filename\u003d\"%s-openrc.sh\"\u0027 % tenant_name)"},{"line_number":146,"context_line":"        response[\u0027Content-Length\u0027] \u003d str(len(response.content))"},{"line_number":147,"context_line":"        return response"},{"line_number":148,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9a061dce_82dca4e5","line":145,"in_reply_to":"9a061dce_2c10674e","updated":"2016-04-05 09:56:26.000000000","message":"Done","commit_id":"8106fe6dba810c1690e1898cf328831b4a0d7f9a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"0edf2c4876629ab99ff8fe26346bbdf466be655b","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        if six.PY2:"},{"line_number":145,"context_line":"            tenant_name \u003d tenant_name and tenant_name.encode(\u0027utf-8\u0027)"},{"line_number":146,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d ("},{"line_number":147,"context_line":"            \u0027attachment; filename\u003d\"%s-openrc.sh\"\u0027 % tenant_name)"},{"line_number":148,"context_line":"        response[\u0027Content-Length\u0027] \u003d str(len(response.content))"},{"line_number":149,"context_line":"        return response"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9a061dce_61a82adc","line":147,"updated":"2016-04-06 11:13:07.000000000","message":"Don\u0027t we need to encode tenant_name even when python3 case?\nI am trying to find a way to do this for python3, but I haven\u0027t succeeded it yet...","commit_id":"d9c869c7464cfd4ed541500728f05fd2bbc40105"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"37f590c0f2c0538678edcff43f5311a27b36b202","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        if six.PY2:"},{"line_number":145,"context_line":"            tenant_name \u003d tenant_name and tenant_name.encode(\u0027utf-8\u0027)"},{"line_number":146,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d ("},{"line_number":147,"context_line":"            \u0027attachment; filename\u003d\"%s-openrc.sh\"\u0027 % tenant_name)"},{"line_number":148,"context_line":"        response[\u0027Content-Length\u0027] \u003d str(len(response.content))"},{"line_number":149,"context_line":"        return response"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9a061dce_c6ddc7e1","line":147,"in_reply_to":"9a061dce_61a82adc","updated":"2016-04-06 12:32:28.000000000","message":"I haven\u0027t looked closely at this yet, but why isn\u0027t python 3 the same?\nhttps://docs.python.org/3/library/stdtypes.html#str.encode","commit_id":"d9c869c7464cfd4ed541500728f05fd2bbc40105"}],"openstack_dashboard/test/helpers.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"c5345785579a14179199d6b5cc369c865c0b2a29","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    return inner_stub_out"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"def override_tenant_data(tenant_dict):"},{"line_number":120,"context_line":"    def decorator(fn):"},{"line_number":121,"context_line":"        @wraps(fn)"},{"line_number":122,"context_line":"        def wrapped(self):"}],"source_content_type":"text/x-python","patch_set":19,"id":"7aa08908_bd4a7d81","line":119,"updated":"2016-06-06 23:20:22.000000000","message":"where is this used? am I missing something obvious?","commit_id":"d0aae2c63dca603ba01425a5b1bbd168c74c966b"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"f3d907332760af600b015071b7930afd11e816be","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    return inner_stub_out"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"def override_tenant_data(tenant_dict):"},{"line_number":120,"context_line":"    def decorator(fn):"},{"line_number":121,"context_line":"        @wraps(fn)"},{"line_number":122,"context_line":"        def wrapped(self):"}],"source_content_type":"text/x-python","patch_set":19,"id":"7aa08908_de313c0d","line":119,"in_reply_to":"7aa08908_bd4a7d81","updated":"2016-06-07 03:09:50.000000000","message":"O_O. Seems it have been here for no reason since patchset#13, looks like some leftover from one of previous patchsets :-[ ].","commit_id":"d0aae2c63dca603ba01425a5b1bbd168c74c966b"}]}
