mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
style: pre-commit fixes
This commit is contained in:
parent
780c6ff9c8
commit
39c21a36e4
@ -406,11 +406,11 @@ inline object get_internals_state_dict() {
|
|||||||
#if PY_VERSION_HEX < 0x03080000 || defined(PYPY_VERSION)
|
#if PY_VERSION_HEX < 0x03080000 || defined(PYPY_VERSION)
|
||||||
state_dict = reinterpret_borrow<object>(PyEval_GetBuiltins());
|
state_dict = reinterpret_borrow<object>(PyEval_GetBuiltins());
|
||||||
#else
|
#else
|
||||||
# if PY_VERSION_HEX < 0x03090000
|
# if PY_VERSION_HEX < 0x03090000
|
||||||
PyInterpreterState *istate = _PyInterpreterState_Get();
|
PyInterpreterState *istate = _PyInterpreterState_Get();
|
||||||
#else
|
# else
|
||||||
PyInterpreterState *istate = PyInterpreterState_Get();
|
PyInterpreterState *istate = PyInterpreterState_Get();
|
||||||
#endif
|
# endif
|
||||||
if (istate)
|
if (istate)
|
||||||
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
|
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user