Skip to content

Commit f67c85d

Browse files
author
Ben Cipollini
committed
BF: must encode unicode before hashing.
1 parent 65a4cfd commit f67c85d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/pipeline/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,9 +2136,9 @@ def _get_hashval(self):
21362136
rm_extra = self.config['execution']['remove_unnecessary_outputs']
21372137
if str2bool(rm_extra) and self.needed_outputs:
21382138
hashobject = md5()
2139-
hashobject.update(hashvalue)
2139+
hashobject.update(hashvalue.encode())
21402140
sorted_outputs = sorted(self.needed_outputs)
2141-
hashobject.update(str(sorted_outputs))
2141+
hashobject.update(str(sorted_outputs).encode())
21422142
hashvalue = hashobject.hexdigest()
21432143
hashed_inputs.append(('needed_outputs', sorted_outputs))
21442144
return hashed_inputs, hashvalue

0 commit comments

Comments
 (0)