Skip to content

Commit 0353e88

Browse files
committed
Fix self name collision in format
1 parent 93cb8a6 commit 0353e88

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

graalpython/lib-graalpython/str.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,13 @@ def formatter_parser(self):
316316
return iter(self.parser_list)
317317

318318

319-
def strformat(self, *args, **kwargs):
320-
template = TemplateFormatter(self)
319+
def strformat(___self, *args, **kwargs):
320+
template = TemplateFormatter(___self)
321321
return template.build(args, kwargs)
322322

323323

324-
def format_map(self, mapping):
325-
template = TemplateFormatter(self)
324+
def format_map(___self, mapping):
325+
template = TemplateFormatter(___self)
326326
return template.build(None, mapping)
327327

328328

0 commit comments

Comments
 (0)