Skip to content

Commit 0c291dc

Browse files
committed
work around pattern of passing "**locals()" to str.format which may collide with argument names
1 parent 4eff8b5 commit 0c291dc

File tree

1 file changed

+3
-3
lines changed
  • graalpython/lib-graalpython

1 file changed

+3
-3
lines changed

graalpython/lib-graalpython/str.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ def formatter_parser(self):
339339
return iter(self.parser_list)
340340

341341

342-
def strformat(self, *args, **kwargs):
343-
template = TemplateFormatter(self)
344-
return template.build(args, kwargs)
342+
def strformat(___self, *___args, **___kwargs):
343+
template = TemplateFormatter(___self)
344+
return template.build(___args, ___kwargs)
345345

346346

347347
str.format = strformat

0 commit comments

Comments
 (0)