Skip to content

Commit 210882c

Browse files
committed
changing to RawConfigParser for consistency
1 parent 03d639d commit 210882c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ def run(self):
7676
repo_commit = repo_commit.decode()
7777

7878
# We write the installation commit even if it's empty
79-
if PY3:
80-
cfg_parser = configparser.RawConfigParser()
81-
else:
82-
cfg_parser = configparser.ConfigParser()
79+
cfg_parser = configparser.RawConfigParser()
8380
cfg_parser.read(pjoin('nipype', 'COMMIT_INFO.txt'))
8481
cfg_parser.set('commit hash', 'install_hash', repo_commit.strip())
8582
out_pth = pjoin(self.build_lib, 'nipype', 'COMMIT_INFO.txt')

0 commit comments

Comments
 (0)