Skip to content

Commit e060bbc

Browse files
author
William Triplett
authored
encode() dir path has prior to computing sha1
Required for python 3 compatibility
1 parent caf45d7 commit e060bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _parameterization_dir(self, param):
391391
- Otherwise, return the parameterization unchanged.
392392
"""
393393
if len(param) > 32:
394-
return sha1(param).hexdigest()
394+
return sha1(param.encode()).hexdigest()
395395
else:
396396
return param
397397

0 commit comments

Comments
 (0)