mirror of
https://github.com/yweber/lodel2.git
synced 2026-07-29 01:03:28 +02:00
MlString: ensure __str__() will always output same string by ordering the keys
This commit is contained in:
parent
4d1e687065
commit
218d1f9afc
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class MlString(object):
|
|||
# @return A json dump of the MlString::translations dict
|
||||
def __str__(self):
|
||||
if self.translations:
|
||||
return json.dumps(self.translations)
|
||||
return json.dumps(self.translations, sort_keys=True)
|
||||
else:
|
||||
return ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue