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 29, 2023
1 parent c02c4d4 commit d6e846d
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 @@ -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);
Expand Down Expand Up @@ -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));
}
Expand Down Expand Up @@ -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 */
};
}
Expand Down

0 comments on commit d6e846d

Please sign in to comment.