Skip to content

Commit 3e7099e

Browse files
committed
Merge pull request #455 from hanke/master
OrderedDict is not in Python < 2.7...
2 parents 993deb3 + 34aefd8 commit 3e7099e

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)