Chromium Code Reviews| Index: build/gn_helpers.py |
| diff --git a/build/gn_helpers.py b/build/gn_helpers.py |
| index 6aeddae5fd853c7e58def9254e5a24a289853710..484ae5af54fe033f5a55f6b8087583fe83e01875 100644 |
| --- a/build/gn_helpers.py |
| +++ b/build/gn_helpers.py |
| @@ -51,7 +51,7 @@ def ToGNString(value, allow_dicts = True): |
| if not allow_dicts: |
| raise GNException("Attempting to recursively print a dictionary.") |
| result = "" |
| - for key in value: |
| + for key in sorted(value): |
|
Dirk Pranke
2016/04/12 18:06:49
this makes things a little more deterministic and
|
| if not isinstance(key, str): |
| raise GNException("Dictionary key is not a string.") |
| result += "%s = %s\n" % (key, ToGNString(value[key], False)) |