Skip to content

Commit aee2e6e

Browse files
authored
Merge pull request #2328 from nipy/fix-2326
FIX: Environment canonicalization bugs
2 parents a70b507 + 60b35a1 commit aee2e6e

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)