mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-15 01:48:18 -05:00
The write_live_config script often gives really strange results when trying to display diffs of changes to dict values, since the ordering of a dict is not defined. So key/value pairs will sometimes be rearranged between the old and new versions, creating a confusing diff. This changes to use the pprint module to generate string representations for dicts, because it sorts the dict by key before outputting it, so we should get consistent representations that can be compared more easily.