Skip to content

Commit afee565

Browse files
cmaloneyencukou
andauthored
Apply batched suggestions from code review
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 52db6f7 commit afee565

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Tools/clinic/libclinic/clanguage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def render_function(
387387
vc_impl_args = [vc_first] + data.impl_arguments[1:]
388388
template_dict['vectorcall_impl_arguments'] = ", ".join(vc_impl_args)
389389
else:
390-
template_dict['vectorcall_impl_arguments'] = ""
390+
pass
391391

392392
template_dict['return_conversion'] = libclinic.format_escape("".join(data.return_conversion).rstrip())
393393
template_dict['post_parsing'] = libclinic.format_escape("".join(data.post_parsing).rstrip())

Tools/clinic/libclinic/function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def c_basename_vectorcall(self) -> str:
149149
name = self.c_basename
150150
for suffix in ('___init__', '___new__', '_new', '_init'):
151151
if name.endswith(suffix):
152-
name = name[:-len(suffix)]
152+
name = name.removesuffix(suffix)
153153
break
154154
return f'{name}_vectorcall'
155155

0 commit comments

Comments
 (0)