We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a70b507 + 60b35a1 commit aee2e6eCopy full SHA for aee2e6e
nipype/interfaces/base.py
@@ -1343,11 +1343,11 @@ def _canonicalize_env(env):
1343
return env
1344
1345
out_env = {}
1346
- for key, val in env:
+ for key, val in env.items():
1347
if not isinstance(key, bytes):
1348
key = key.encode('utf-8')
1349
if not isinstance(val, bytes):
1350
- val = key.encode('utf-8')
+ val = val.encode('utf-8')
1351
out_env[key] = val
1352
return out_env
1353
0 commit comments