Skip to content

Commit bbbf84d

Browse files
Update Tools/i18n/msgfmt.py
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 4d4e32f commit bbbf84d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/i18n/msgfmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def hash_insert_entry(string, i):
9090
# Because unsuccessful searches are unlikely this is a good value.
9191
# Formulas: [Knuth, The Art of Computer Programming, Volume 3,
9292
# 766 Sorting and Searching, 1973, Addison Wesley]
93-
hash_tab_size = next_prime((len(sorted(MESSAGES.keys())) * 4) // 3)
93+
hash_tab_size = next_prime((len(MESSAGES) * 4) // 3)
9494
if hash_tab_size <= 2:
9595
hash_tab_size = 3
9696
hash_table = array.array("I", [0] * hash_tab_size)

0 commit comments

Comments
 (0)