Skip to content

Commit 34aefd8

Browse files
committed
BF: Do not (unnecessarily) require OrderedDict for Python < 2.7 in the plugins
1 parent 993deb3 commit 34aefd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/pipeline/plugins/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ def create_pyscript(node, updatehash=False, store_exception=True):
115115
batchdir = '%s'
116116
try:
117117
from nipype import config, logging
118-
from ordereddict import OrderedDict
118+
import sys
119+
if not sys.version_info < (2, 7):
120+
from ordereddict import OrderedDict
119121
config_dict=%s
120122
config.update_config(config_dict)
121123
config.update_matplotlib()

0 commit comments

Comments
 (0)