Skip to content

Commit 03d639d

Browse files
committed
removing if block
1 parent 75a36f6 commit 03d639d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nipype/pkg_info.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ def pkg_commit_hash(pkg_path):
4949
pth = os.path.join(pkg_path, COMMIT_INFO_FNAME)
5050
if not os.path.isfile(pth):
5151
raise IOError('Missing commit info file %s' % pth)
52-
if PY3:
53-
cfg_parser = configparser.RawConfigParser()
54-
else:
55-
cfg_parser = configparser.RawConfigParser()
52+
cfg_parser = configparser.RawConfigParser()
5653
with open(pth, encoding='utf-8') as fp:
5754
cfg_parser.readfp(fp)
5855
archive_subst = cfg_parser.get('commit hash', 'archive_subst_hash')

0 commit comments

Comments
 (0)