Skip to content

Commit

Permalink
python: Fix formatting for updated clang-format configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
taminob committed Nov 26, 2024
1 parent d9720be commit 2bb3b45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ PythonInterpreter::PythonInterpreter()
// TODO: handle this failure
return;
}
PythonGuard const python_guard { state() };
const PythonGuard python_guard { state() };
Py_DECREF(main_module);
} }
, state_ { nullptr, [](auto* state) {
PythonGuard const python_guard { state };
const PythonGuard python_guard { state };
Py_EndInterpreter(state);
} }
{
Expand Down Expand Up @@ -124,11 +124,11 @@ std::optional<LoadError> PythonInterpreter::load(const std::string& file_name)
if (!file) {
return LoadError::fileNotReadable;
}
PythonGuard const python_guard { state() };
const PythonGuard python_guard { state() };
auto* globals = PyModule_GetDict(mainModule());
assert(globals);
auto* locals = globals;
int const start { Py_file_input };
const int start { Py_file_input };
auto* result = PyRun_File(file.get(), file_name.c_str(), start, globals, locals);
Py_DECREF(globals);
if (result != nullptr) {
Expand Down

0 comments on commit 2bb3b45

Please sign in to comment.