)]}'
{
  "commit": "e76b7205ef6a19246790faf440bc482f22264e51",
  "tree": "f2e5d2c77365d8c26854f6f9094604106411b800",
  "parents": [
    "e05c94e334066fecea611646d87f67eb034be079"
  ],
  "author": {
    "name": "Martí Bolívar",
    "email": "marti.bolivar@nordicsemi.no",
    "time": "Wed Jul 01 10:37:34 2020 -0700"
  },
  "committer": {
    "name": "Kumar Gala",
    "email": "kumar.gala@gmail.com",
    "time": "Wed Jul 08 14:02:44 2020 -0500"
  },
  "message": "dts: edtlib: allow pickling/unpickling EDT objects\n\nWe have a use case for saving the EDT object to be able to open it up\nagain later. It would be convenient to be able to do this with the\npickle module from stdlib.\n\nThe only thing stopping us from doing that appears to be the open\nreference to sys.stderr that\u0027s held the edt object even after\nEDT.__init__ exits. However, there doesn\u0027t seem to be a need to keep\nholding on to this object, and in fact it would be a little bit nicer\nto drop the reference in case something else (even in the same Python\nprocess that created it originally) wants the EDT object around, but\nmight want the warn file closed if its refcount zeroes out.\n\nJust drop the reference at the end of __init__ and make EDT._warn()\nthrow an exception if it\u0027s attempted to be used after the constructor\nexits.\n\nMake pickle-ability an API guarantee so we can treat any regressions\nas bugs going forward.\n\nSigned-off-by: Martí Bolívar \u003cmarti.bolivar@nordicsemi.no\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "eb90c97cd55c644021793394534279f552791c5f",
      "old_mode": 33188,
      "old_path": "scripts/dts/edtlib.py",
      "new_id": "0232187c0b72fe66ba5e707825a5fc96233a9d4f",
      "new_mode": 33188,
      "new_path": "scripts/dts/edtlib.py"
    }
  ]
}
