Skip to content

Commit

Permalink
sort names for repr
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Oct 4, 2020
1 parent c4863ac commit 9bbca10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawbot_skia/gstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})"


Expand Down

0 comments on commit 9bbca10

Please sign in to comment.