From a99a97b1e2f7bfb2e9da0a1b7be26c621f9c8354 Mon Sep 17 00:00:00 2001 From: Tamino Bauknecht Date: Tue, 26 Nov 2024 23:41:07 +0100 Subject: [PATCH] python: Fix formatting for updated clang-format configuration --- src/python_interpreter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python_interpreter.cpp b/src/python_interpreter.cpp index c608f66..c71a642 100644 --- a/src/python_interpreter.cpp +++ b/src/python_interpreter.cpp @@ -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); } } { @@ -124,11 +124,11 @@ std::optional 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) {