Skip to content

Commit 1c38232

Browse files
committed
fix: ordered dict to str
1 parent 601b8a3 commit 1c38232

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
@@ -83,7 +83,7 @@ def get_hashval(inputdict, skip=None):
8383
dict_nofilename[outname] = _get_sorteddict(val)
8484
dict_withhash[outname] = _get_sorteddict(val, True)
8585
sorted_dict = str(sorted(dict_nofilename.items()))
86-
return (dict_withhash, md5(str(dict_nofilename).encode()).hexdigest())
86+
return (dict_withhash, md5(sorted_dict.encode()).hexdigest())
8787

8888

8989
def _get_sorteddict(object, dictwithhash=False):

0 commit comments

Comments
 (0)