Skip to content

Commit 60b35a1

Browse files
authored
FIX: Environment canonicalization bugs
1 parent a70b507 commit 60b35a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,11 +1343,11 @@ def _canonicalize_env(env):
13431343
return env
13441344

13451345
out_env = {}
1346-
for key, val in env:
1346+
for key, val in env.items():
13471347
if not isinstance(key, bytes):
13481348
key = key.encode('utf-8')
13491349
if not isinstance(val, bytes):
1350-
val = key.encode('utf-8')
1350+
val = val.encode('utf-8')
13511351
out_env[key] = val
13521352
return out_env
13531353

0 commit comments

Comments
 (0)