Skip to content

Conversation

@glimow
Copy link
Contributor

@glimow glimow commented May 10, 2019

No description provided.

Signed-off-by: Tristan Kalos <tristan.kalos@live.fr>
Copy link
Collaborator

@vmarkovtsev vmarkovtsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should always sort the keys

os.remove(index)
self._log.info("Writing the new index.json ...")
with open(index, "w") as _out:
json.dump(self.contents, _out, sort_keys=True, indent=4)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that we rely on the order of the keys? There is a special "default" key as far as I remember.

Anyway, even if we do rely on the order, that's an error and we should fix the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants