Skip to content

Commit cd94af0

Browse files
committed
Use f-string
1 parent 17b6b68 commit cd94af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

somsiad.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def summarize_mem(*, key_type='lineno', limit=9):
579579
% (index, filename, frame.lineno, stat.size / 1024))
580580
line = linecache.getline(frame.filename, frame.lineno).strip()
581581
if line:
582-
results[-1] += '\n %s' % line
582+
results[-1] += f'\n {line}'
583583

584584
other = top_stats[limit:]
585585
if other:

0 commit comments

Comments
 (0)