)]}'
{
  "commit": "fe7f791f14769390d0b124ef8231cde4d575eb12",
  "tree": "b7807ded1d273643a1fd9782101c286996a3b115",
  "parents": [
    "cb3514a0858be0f66281d892e2242d1073fd75fe"
  ],
  "author": {
    "name": "Kefu Chai",
    "email": "tchaikov@gmail.com",
    "time": "Thu Aug 02 08:56:55 2018 +0800"
  },
  "committer": {
    "name": "Peter Boström",
    "email": "git@pbos.me",
    "time": "Wed Aug 01 17:56:55 2018 -0700"
  },
  "message": "fix py3 compatibility (#63)\n\n* decode retval of subprocess.check_output() before splitting it\r\n\r\nbecause subprocess.check_output() return bytes not str in python3, we\r\nneed to decode it before split(\u0027\\n\u0027).\r\n\r\notherwise we will have failures like\r\n\r\n93: Traceback (most recent call last):\r\n93:   File \"/home/kefu/dev/ceph/build/src/test/gtest-parallel/gtest-parallel\", line 18, in \u003cmodule\u003e\r\n93:     sys.exit(gtest_parallel.main())\r\n93:   File \"/home/kefu/dev/ceph/build/src/test/gtest-parallel/gtest_parallel.py\", line 785, in main\r\n93:     tasks \u003d find_tests(binaries, additional_args, options, times)\r\n93:   File \"/home/kefu/dev/ceph/build/src/test/gtest-parallel/gtest_parallel.py\", line 579, in find_tests\r\n93:     for line in test_list.split(\u0027\\n\u0027):\r\n93: TypeError: a bytes-like object is required, not \u0027str\u0027\r\n\r\n* use io.TextIOWrapper for unbuffered IO\r\n\r\nthis works around https://bugs.python.org/issue17404 for python3\r\ncompatibility.\r\n\r\nSigned-off-by: Kefu Chai \u003ctchaikov@gmail.com\u003e\r\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3574a0f5faa9deb87cd9ca7564fa1d8415e28d2d",
      "old_mode": 33261,
      "old_path": "gtest_parallel.py",
      "new_id": "607ab1c25c8eba5a5c3742a65a9b7ef7a25268ec",
      "new_mode": 33261,
      "new_path": "gtest_parallel.py"
    }
  ]
}
