mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue 27921: Remove backslash from another f-string. I'll revert this change before beta 2. I also need to look in to why test_tools/test_unparse fails with the files that are now being skipped.
This commit is contained in:
parent
7c4e409d07
commit
06cf601e4f
3 changed files with 14 additions and 4 deletions
|
@ -402,7 +402,7 @@ class StackSummary(list):
|
|||
count += 1
|
||||
else:
|
||||
if count > 3:
|
||||
result.append(f' [Previous line repeated {count-3} more times]''\n')
|
||||
result.append(f' [Previous line repeated {count-3} more times]'+'\n')
|
||||
last_file = frame.filename
|
||||
last_line = frame.lineno
|
||||
last_name = frame.name
|
||||
|
@ -419,7 +419,7 @@ class StackSummary(list):
|
|||
row.append(' {name} = {value}\n'.format(name=name, value=value))
|
||||
result.append(''.join(row))
|
||||
if count > 3:
|
||||
result.append(f' [Previous line repeated {count-3} more times]''\n')
|
||||
result.append(f' [Previous line repeated {count-3} more times]'+'\n')
|
||||
return result
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue