Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9be3645

Browse filesBrowse files
gh-132777: Fix Error Message for Duplicates in generate_global_scripts.py (gh-132780)
The fstring would actually raise a KeyError, which we fix. We also adjust the text to be correct.
1 parent 09b624b commit 9be3645
Copy full SHA for 9be3645

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Tools/build/generate_global_objects.py

Copy file name to clipboardExpand all lines: Tools/build/generate_global_objects.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def get_identifiers_and_strings() -> 'tuple[set[str], dict[str, str]]':
439439
if string not in strings:
440440
strings[string] = name
441441
elif name != strings[string]:
442-
raise ValueError(f'string mismatch for {name!r} ({string!r} != {strings[name]!r}')
442+
raise ValueError(f'name mismatch for string {string!r} ({name!r} != {strings[string]!r}')
443443
overlap = identifiers & set(strings.keys())
444444
if overlap:
445445
raise ValueError(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.