From 9bbca100ce8c57fb689a5b1e806413b5c2b05225 Mon Sep 17 00:00:00 2001 From: justvanrossum Date: Sun, 4 Oct 2020 16:59:57 +0200 Subject: [PATCH] sort names for repr --- src/drawbot_skia/gstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawbot_skia/gstate.py b/src/drawbot_skia/gstate.py index 8cef8fc..ce5fe5b 100644 --- a/src/drawbot_skia/gstate.py +++ b/src/drawbot_skia/gstate.py @@ -196,7 +196,7 @@ def __eq__(self, other): return all(getattr(self, n) == getattr(other, n) for n in self._names) def __repr__(self): - args = ", ".join(f"{n}={self.__dict__[n]!r}" for n in self._names) + args = ", ".join(f"{n}={self.__dict__[n]!r}" for n in sorted(self._names)) return f"{self.__class__.__name__}({args})"