Skip to content

Commit 5a1c216

Browse files
authored
Merge pull request #5717 from DIRACGridBot/cherry-pick-2-b59c3360c-integration
[sweep:integration] Fix encodeDict when the dict keys have mixed types
2 parents 271c7e3 + 55eb7f6 commit 5a1c216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/Core/Utilities/DEncode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def encodeDict(dValue, eList):
489489
printDebugCallstack("Encoding dict with numeric keys")
490490

491491
eList.append(b"d")
492-
for key in sorted(dValue):
492+
for key in dValue:
493493
g_dEncodeFunctions[type(key)](key, eList)
494494
g_dEncodeFunctions[type(dValue[key])](dValue[key], eList)
495495
eList.append(b"e")

0 commit comments

Comments
 (0)