Skip to content

Commit

Permalink
Shuffle subexpressions to make the condition easier to understand (no…
Browse files Browse the repository at this point in the history
… change to logic).
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Mar 26, 2023
1 parent 1c5bc85 commit e8b34b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pybind11/detail/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ inline void translate_local_exception(std::exception_ptr p) {

inline object get_python_state_dict() {
object state_dict;
#if (PYBIND11_INTERNALS_VERSION <= 4 && PY_VERSION_HEX < 0x030C0000) \
|| PY_VERSION_HEX < 0x03080000 || defined(PYPY_VERSION)
#if PY_VERSION_HEX < 0x03080000 \
|| (PYBIND11_INTERNALS_VERSION <= 4 && PY_VERSION_HEX < 0x030C0000) || defined(PYPY_VERSION)
state_dict = reinterpret_borrow<object>(PyEval_GetBuiltins());
#else
# if PY_VERSION_HEX < 0x03090000
Expand Down

0 comments on commit e8b34b4

Please sign in to comment.