We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83e4dc9 commit e057971Copy full SHA for e057971
nipype/pkg_info.py
@@ -44,10 +44,7 @@ def pkg_commit_hash(pkg_path):
44
raise IOError('Missing commit info file %s' % pth)
45
cfg_parser = configparser.RawConfigParser()
46
with open(pth, encoding='utf-8') as fp:
47
- if sys.version_info >= (3, 2):
48
- cfg_parser.read_file(fp)
49
- else:
50
- cfg_parser.readfp(fp)
+ cfg_parser.read_file(fp)
51
archive_subst = cfg_parser.get('commit hash', 'archive_subst_hash')
52
if not archive_subst.startswith('$Format'): # it has been substituted
53
return 'archive substitution', archive_subst
0 commit comments