mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #20076: Apply optimization in makelocalealias.py repeatedly.
Remove just added the sr_rs.utf8@latn alias because it is derived from sr_rs@latin.
This commit is contained in:
commit
5189ee54cf
2 changed files with 6 additions and 2 deletions
|
@ -133,7 +133,12 @@ if __name__ == '__main__':
|
|||
if args.glibc_supported:
|
||||
data.update(parse_glibc_supported(args.glibc_supported))
|
||||
data.update(parse(args.locale_alias))
|
||||
data = optimize(data)
|
||||
while True:
|
||||
# Repeat optimization while the size is decreased.
|
||||
n = len(data)
|
||||
data = optimize(data)
|
||||
if len(data) == n:
|
||||
break
|
||||
print_differences(data, locale.locale_alias)
|
||||
print()
|
||||
print('locale_alias = {')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue