)]}'
{
  "commit": "230917f5072c5c6b9373374a84d52935d7afa3b5",
  "tree": "5521be0a812328cbb8aee929b379369e61cffbac",
  "parents": [
    "5eefa589f1339d51f9e536b87b036f4193c0769e"
  ],
  "author": {
    "name": "Harjoth Khara",
    "email": "harjoth.khara@gmail.com",
    "time": "Sat Oct 10 19:56:51 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sat Oct 10 19:56:51 2026"
  },
  "message": "gh-141276: Avoid compiling zipimport source in get_filename (#153799)\n\n`zipimporter.get_filename()` compiled source modules just to work out the\nmodule\u0027s file name. `find_spec()` calls it through `spec_from_loader()`, so\nimporting a source module from a ZIP archive compiled it twice and emitted\nevery `SyntaxWarning` twice.\n\n`get_filename()` now returns before reading or compiling the source.\nAs a result, a `SyntaxError` in a zipped source module is now raised by\n`exec_module()` rather than by `find_spec()` or `get_filename()`, and\nthe source isn\u0027t compiled twice during import, which matches\nthe filesystem-based loaders.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a4136733a550301bbf0d97d4c7bdc312d5ea9f2c",
      "old_mode": 33188,
      "old_path": "Doc/library/zipimport.rst",
      "new_id": "c4a0df1d0314d0c740b6971450ac988c0a36a372",
      "new_mode": 33188,
      "new_path": "Doc/library/zipimport.rst"
    },
    {
      "type": "modify",
      "old_id": "3802ed62ce7c26bdb765f5d2febd67b53c654518",
      "old_mode": 33188,
      "old_path": "Lib/test/test_cmd_line_script.py",
      "new_id": "4b09eb76cbb3792e89ef235967c40f40f120b3c1",
      "new_mode": 33188,
      "new_path": "Lib/test/test_cmd_line_script.py"
    },
    {
      "type": "modify",
      "old_id": "76cd85709a63af8feeef3cfb8151a7d6c46d4738",
      "old_mode": 33188,
      "old_path": "Lib/test/test_zipimport.py",
      "new_id": "021fae1bd298e03940ca64aa1d2fba15b48320c0",
      "new_mode": 33188,
      "new_path": "Lib/test/test_zipimport.py"
    },
    {
      "type": "modify",
      "old_id": "2b28f46149b4ff3f4590e6f20a4b451bddecbfa9",
      "old_mode": 33188,
      "old_path": "Lib/test/test_zipimport_support.py",
      "new_id": "dee5db00530ba34eb0fcbbb3755d385eee3f77df",
      "new_mode": 33188,
      "new_path": "Lib/test/test_zipimport_support.py"
    },
    {
      "type": "modify",
      "old_id": "19279d1c2bea36866ec771123dc8a378e785088b",
      "old_mode": 33188,
      "old_path": "Lib/zipimport.py",
      "new_id": "241af9a0430684e67ff713127808917063e48e57",
      "new_mode": 33188,
      "new_path": "Lib/zipimport.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c19c7bbd31eb488cb32ef0a130dfdf8784f56759",
      "new_mode": 33188,
      "new_path": "Misc/NEWS.d/next/Library/2026-07-15-21-45-33.gh-issue-141276.xH7qP2.rst"
    }
  ]
}
