Skip to content

Commit

Permalink
git grep -I -E '3\.7' cleanup.
Browse files Browse the repository at this point in the history
Removes two changes made under #3702
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Jun 25, 2024
1 parent af537e7 commit bb5b9d1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/pybind11/gil.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ class gil_scoped_release {
// NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
tstate = PyEval_SaveThread();
if (disassoc) {
// Python >= 3.7 can remove this, it's an int before 3.7
// NOLINTNEXTLINE(readability-qualified-auto)
auto key = internals.tstate;
PYBIND11_TLS_DELETE_VALUE(key);
}
Expand All @@ -173,8 +171,6 @@ class gil_scoped_release {
PyEval_RestoreThread(tstate);
}
if (disassoc) {
// Python >= 3.7 can remove this, it's an int before 3.7
// NOLINTNEXTLINE(readability-qualified-auto)
auto key = detail::get_internals().tstate;
PYBIND11_TLS_REPLACE_VALUE(key, tstate);
}
Expand Down

0 comments on commit bb5b9d1

Please sign in to comment.