Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nipype/interfaces/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,11 +1343,11 @@ def _canonicalize_env(env):
return env

out_env = {}
for key, val in env:
for key, val in env.items():
if not isinstance(key, bytes):
key = key.encode('utf-8')
if not isinstance(val, bytes):
val = key.encode('utf-8')
val = val.encode('utf-8')
out_env[key] = val
return out_env

Expand Down