Skip to content

Commit

Permalink
Do not use legacy or keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bertwesarg committed Nov 20, 2023
1 parent fdfe8e0 commit 540bb21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ extern "C"
std::string_view function_name(function_name_cstr, function_name_len);
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);
}
Expand Down Expand Up @@ -125,7 +125,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));
}
Expand Down Expand Up @@ -251,7 +251,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 */
};
}
Expand Down

0 comments on commit 540bb21

Please sign in to comment.