mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 14:15:11 +00:00
git grep -I -E '3\.7'
cleanup.
Removes two changes made under pybind/pybind11#3702
This commit is contained in:
parent
af537e72bb
commit
bb5b9d187b
@ -147,8 +147,6 @@ public:
|
|||||||
// NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
|
// NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
|
||||||
tstate = PyEval_SaveThread();
|
tstate = PyEval_SaveThread();
|
||||||
if (disassoc) {
|
if (disassoc) {
|
||||||
// Python >= 3.7 can remove this, it's an int before 3.7
|
|
||||||
// NOLINTNEXTLINE(readability-qualified-auto)
|
|
||||||
auto key = internals.tstate;
|
auto key = internals.tstate;
|
||||||
PYBIND11_TLS_DELETE_VALUE(key);
|
PYBIND11_TLS_DELETE_VALUE(key);
|
||||||
}
|
}
|
||||||
@ -173,8 +171,6 @@ public:
|
|||||||
PyEval_RestoreThread(tstate);
|
PyEval_RestoreThread(tstate);
|
||||||
}
|
}
|
||||||
if (disassoc) {
|
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;
|
auto key = detail::get_internals().tstate;
|
||||||
PYBIND11_TLS_REPLACE_VALUE(key, tstate);
|
PYBIND11_TLS_REPLACE_VALUE(key, tstate);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user