Summary:
There is a module called `2to3` which you can target for future specifically to remove these, the directory of `caffe2` has the most redundant imports:
```2to3 -f future -w caffe2```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45033
Reviewed By: seemethere
Differential Revision: D23808648
Pulled By: bugra
fbshipit-source-id: 38971900f0fe43ab44a9168e57f2307580d36a38
Summary: This diff is one step towards enabling python 3 build by making it be more diligent in its handling of strings.
Reviewed By: salexspb
Differential Revision: D4893083
fbshipit-source-id: 28b8adf3280e8d1f0a7dc9b0fee5ad53f2fada57
Summary:
It looks like there's some locking going on here, and so if
the Cursor outlives the DB (or vice-versa), we'll either deadlock or
unlock an unlocked mutex.
Reviewed By: dzhulgakov
Differential Revision: D4224727
fbshipit-source-id: 886401a9f2824f3168fb0b2fd4df6046369e5590