Skip to content

Commit e057971

Browse files
committed
MAINT: Minimum python version > 3.2
1 parent 83e4dc9 commit e057971

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nipype/pkg_info.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ def pkg_commit_hash(pkg_path):
4444
raise IOError('Missing commit info file %s' % pth)
4545
cfg_parser = configparser.RawConfigParser()
4646
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)
47+
cfg_parser.read_file(fp)
5148
archive_subst = cfg_parser.get('commit hash', 'archive_subst_hash')
5249
if not archive_subst.startswith('$Format'): # it has been substituted
5350
return 'archive substitution', archive_subst

0 commit comments

Comments
 (0)