From f3d159891fe17c296f3400fb626687b61194a5b1 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 11 Sep 2017 17:56:46 -0500 Subject: [PATCH] Include target type in persistent hash (Fixes #88 on gitlab) --- loopy/target/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/loopy/target/__init__.py b/loopy/target/__init__.py index 5d5743bae..7e307ef8b 100644 --- a/loopy/target/__init__.py +++ b/loopy/target/__init__.py @@ -55,6 +55,7 @@ class TargetBase(object): comparison_fields = () def update_persistent_hash(self, key_hash, key_builder): + key_hash.update(type(self).__name__.encode()) for field_name in self.hash_fields: key_builder.rec(key_hash, getattr(self, field_name)) -- GitLab