From d6e846d02adece53a9e23d511538fa4fae619497 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Mon, 20 Nov 2023 19:50:01 +0100 Subject: [PATCH] Do not use legacy `or` keyword --- src/methods.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/methods.cpp b/src/methods.cpp index c0fa67e..84934de 100644 --- a/src/methods.cpp +++ b/src/methods.cpp @@ -74,7 +74,7 @@ extern "C" auto const file_name_abs = scorepy::abspath(std::string_view(file_name_cstr, file_name_len)); - if (identifier == nullptr or identifier == Py_None) + if (identifier == nullptr || identifier == Py_None) { scorepy::region_begin(function_name, std::move(module), std::move(file_name_abs), line_number); @@ -127,7 +127,7 @@ extern "C" std::string module(module_cstr, module_len); std::string_view function_name(function_name_cstr, function_name_len); - if (identifier == nullptr or identifier == Py_None) + if (identifier == nullptr || identifier == Py_None) { scorepy::region_end(function_name, std::move(module)); } @@ -254,7 +254,7 @@ extern "C" { "abspath", abspath, METH_VARARGS, "Estimates the absolute Path." }, { "force_finalize", force_finalize, METH_VARARGS, "triggers a finalize" }, { "reregister_exit_handler", reregister_exit_handler, METH_VARARGS, - "register an new atexit handler" }, + "register a new atexit handler" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; }