)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":28714,"name":"Adrian Chiris","email":"adrianc@nvidia.com","username":"adrianc"},"change_message_id":"1d40ee06ba1857fdf43b9c0efad33202a97b94e8","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2019-12-10 11:42:52 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix open tempfile.NamedTemporaryFile as string for Python3"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: Ia1f280ab64f0dc90824d4cb9ed20a8537af32ef6"},{"line_number":10,"context_line":"Closes-Bug: 1855855"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3fa7e38b_ae56315d","line":8,"updated":"2019-12-11 10:04:14.000000000","message":"a short description on what is the current behaviour with python 3 would be helpful here :)","commit_id":"23b506238bb8c92249ef3d58e194655d5123096e"}],"cinder/volume/targets/nvmet.py":[{"author":{"_account_id":28714,"name":"Adrian Chiris","email":"adrianc@nvidia.com","username":"adrianc"},"change_message_id":"b470f11c90e185636e2ddb7ce4faff6ae78d644a","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    def _restore(self, nvmf_subsystems):"},{"line_number":85,"context_line":"        # Dump updated JSON dict to append new subsystem"},{"line_number":86,"context_line":"        with tempfile.NamedTemporaryFile(mode \u003d \"w\") as tmp_fd:"},{"line_number":87,"context_line":"            tmp_fd.write(json.dumps(nvmf_subsystems))"},{"line_number":88,"context_line":"            tmp_fd.flush()"},{"line_number":89,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_4e453d9a","line":86,"range":{"start_line":86,"start_character":41,"end_line":86,"end_character":51},"updated":"2019-12-11 10:05:42.000000000","message":"So, according to python doc [1] by default it opens the file as w+b\n\ni guess this doesnt work well with strings in py3\n\n[1] https://docs.python.org/3/library/tempfile.html","commit_id":"23b506238bb8c92249ef3d58e194655d5123096e"}]}
