diff --git a/ocldev/checksum.py b/ocldev/checksum.py index 894dd2d..f574305 100644 --- a/ocldev/checksum.py +++ b/ocldev/checksum.py @@ -178,12 +178,13 @@ def _locales_for_checksums(data, relation, fields, predicate_func): def _generate(self, obj, hash_algorithm='MD5'): # hex encoding is used to make the hash more readable - serialized_obj = self._serialize(obj).encode('utf-8') - + serialized_obj = self._serialize(obj) if self.verbosity: print("\n") print("After Serialization") - print(serialized_obj.decode()) + print(serialized_obj) + + serialized_obj = serialized_obj.encode('utf-8') hash_func = hashlib.new(hash_algorithm) hash_func.update(serialized_obj)