We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09f325a + 29ff9da commit e29ac95Copy full SHA for e29ac95
nipype/pkg_info.py
@@ -51,7 +51,10 @@ def pkg_commit_hash(pkg_path):
51
raise IOError('Missing commit info file %s' % pth)
52
cfg_parser = configparser.RawConfigParser()
53
with open(pth, encoding='utf-8') as fp:
54
- cfg_parser.readfp(fp)
+ if sys.version_info >= (3, 2):
55
+ cfg_parser.read_file(fp)
56
+ else:
57
+ cfg_parser.readfp(fp)
58
archive_subst = cfg_parser.get('commit hash', 'archive_subst_hash')
59
if not archive_subst.startswith('$Format'): # it has been substituted
60
return 'archive substitution', archive_subst
0 commit comments