)]}'
{
  "commit": "24d2cbc42ccf08dba79394635db3be084eed9062",
  "tree": "5ca03b1fe4cb30ead26999da1c83da08af874faf",
  "parents": [
    "23aa2befce75966acd388b810e139922857533fa"
  ],
  "author": {
    "name": "Kevin Buettner",
    "email": "kevinb@redhat.com",
    "time": "Mon Jul 25 12:04:10 2022 -0700"
  },
  "committer": {
    "name": "Kevin Buettner",
    "email": "kevinb@redhat.com",
    "time": "Mon Jul 25 12:05:14 2022 -0700"
  },
  "message": "set/show python dont-write-bytecode fixes\n\nGDB uses the environment variable PYTHONDONTWRITEBYTECODE to\ndetermine whether or not to write the result of byte-compiling\npython modules when the \"python dont-write-bytecode\" setting\nis \"auto\".  Simon noticed that GDB\u0027s implementation doesn\u0027t\nfollow the Python documentation.\n\nAt present, GDB only checks for the existence of this environment\nvariable.  That is not sufficient though.  Regarding\nPYTHONDONTWRITEBYTECODE, this document...\n\n    https://docs.python.org/3/using/cmdline.html\n\n...says:\n\n    If this is set to a non-empty string, Python won\u0027t try to write\n    .pyc files on the import of source modules.\n\nThis commit fixes GDB\u0027s handling of PYTHONDONTWRITEBYTECODE by adding\nan empty string check.\n\nThis commit also corrects the set/show command documentation for\n\"python dont-write-bytecode\".  The current doc was just a copy\nof that for set/show python ignore-environment.\n\nDuring his review of an earlier version of this patch, Eli Zaretskii\nasked that the help text that I proposed for \"set/show python\ndont-write-bytecode\" be expanded.  I\u0027ve done that in addition to\nclarifying the documentation of this option in the GDB manual.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "eeb847aeaa82dd17d51220c6f38e16c40808639e",
      "old_mode": 33188,
      "old_path": "gdb/doc/python.texi",
      "new_id": "cdf7db916022603e0d704520b951aaad20fb2bc5",
      "new_mode": 33188,
      "new_path": "gdb/doc/python.texi"
    },
    {
      "type": "modify",
      "old_id": "c7d4157b70c3e5be78f0c1ea1b54d1a5fd5b9e03",
      "old_mode": 33188,
      "old_path": "gdb/python/python.c",
      "new_id": "7997bee2c69ddcd721a9001b7362420b353639b2",
      "new_mode": 33188,
      "new_path": "gdb/python/python.c"
    }
  ]
}
