We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a36f6 commit 03d639dCopy full SHA for 03d639d
nipype/pkg_info.py
@@ -49,10 +49,7 @@ def pkg_commit_hash(pkg_path):
49
pth = os.path.join(pkg_path, COMMIT_INFO_FNAME)
50
if not os.path.isfile(pth):
51
raise IOError('Missing commit info file %s' % pth)
52
- if PY3:
53
- cfg_parser = configparser.RawConfigParser()
54
- else:
55
+ cfg_parser = configparser.RawConfigParser()
56
with open(pth, encoding='utf-8') as fp:
57
cfg_parser.readfp(fp)
58
archive_subst = cfg_parser.get('commit hash', 'archive_subst_hash')
0 commit comments