MCPcopy Index your code
hub / github.com/python/cpython / print_differences

Function print_differences

Tools/i18n/makelocalealias.py:106–113  ·  view source on GitHub ↗
(data, olddata)

Source from the content-addressed store, hash-verified

104 print(f" {k!a:<40}{v!a},")
105
106def print_differences(data, olddata):
107 items = sorted(olddata.items())
108 for k, v in items:
109 if k not in data:
110 print(f'# removed {k!a}')
111 elif olddata[k] != data[k]:
112 print(f'# updated {k!a} -> {olddata[k]!a} to {data[k]!a}')
113 # Additions are not mentioned
114
115def optimize(data):
116 locale_alias = locale.locale_alias

Callers 1

makelocalealias.pyFile · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…