Skip to content

Commit 48b7b6b

Browse files
committed
fix: ensure encoding happens before hashing
1 parent 1e205a7 commit 48b7b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/provenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_hashval(inputdict, skip=None):
8282
val = val.value
8383
dict_nofilename[outname] = _get_sorteddict(val)
8484
dict_withhash[outname] = _get_sorteddict(val, True)
85-
return (dict_withhash, md5(str(dict_nofilename)).hexdigest())
85+
return (dict_withhash, md5(dict_nofilename.encode()).hexdigest())
8686

8787

8888
def _get_sorteddict(object, dictwithhash=False):

0 commit comments

Comments
 (0)