diff options
| author | Stefan Kögl <stefan@skoegl.net> | 2012-12-14 09:23:06 +0100 |
|---|---|---|
| committer | Stefan Kögl <stefan@skoegl.net> | 2012-12-14 09:23:06 +0100 |
| commit | 777697e893c772c1df32af9b91747826c935c928 (patch) | |
| tree | 4a01c03dae16ddaf4eabbb15508a5f9e0473b68c /jsonpatch.py | |
| parent | bb46b6568f0296f700178dd5081c80e2c7b2e73e (diff) | |
| download | python-json-patch-777697e893c772c1df32af9b91747826c935c928.tar.gz | |
fix incorrect JsonPatch.__hash__(), fixes #11
Diffstat (limited to 'jsonpatch.py')
| -rw-r--r-- | jsonpatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py index 1c93ac3..ef1734d 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -198,7 +198,7 @@ class JsonPatch(object): def __hash__(self): - return hash(frozenset(self.operations)) + return hash(tuple(self._get_operation(op) for op in self.patch)) def __eq__(self, other): |
