summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-13 06:15:48 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:11 (GMT)
commitd4c888042f16fad4b9c79c402c52f26cbd4b0995 (patch)
tree318ae0199da6f30e70d532e1a2ac75fe70a8fe3e
parent91b09b09db0c24a6dc6dc8239d2ea40be2784568 (diff)
Move.prettyKwArgs: sort by key, making debug logs easier to compare
-rw-r--r--src/move.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/move.py b/src/move.py
index c1d5c3f..874d0b3 100644
--- a/src/move.py
+++ b/src/move.py
@@ -83,7 +83,8 @@ class Move(StrMixin):
def prettyKwargs(kwargs):
"""this is also used by the server, but the server does not use class Move"""
result = u''
- for key, value in kwargs.items():
+ for key in sorted(kwargs.keys()):
+ value = kwargs[key]
if key == 'token':
continue
if isinstance(value, (list, tuple)) and isinstance(value[0], (list, tuple)):