From bb5b9d187bffbfb61e2977d7eee46b766fa1cce9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 24 Jun 2024 20:31:40 -0700 Subject: [PATCH] `git grep -I -E '3\.7'` cleanup. Removes two changes made under pybind/pybind11#3702 --- include/pybind11/gil.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/pybind11/gil.h b/include/pybind11/gil.h index 6b0edaee4..5fb81c86d 100644 --- a/include/pybind11/gil.h +++ b/include/pybind11/gil.h @@ -147,8 +147,6 @@ public: // 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); } @@ -173,8 +171,6 @@ public: 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); }