Skip to content

Commit eda8762

Browse files
committed
Merge remote-tracking branch 'nipy/master' into clean-afni
2 parents 5923a49 + f5e3cab commit eda8762

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/pkg_info.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import subprocess
1212

1313
COMMIT_INFO_FNAME = 'COMMIT_INFO.txt'
14-
14+
PY3 = sys.version_info[0] >= 3
1515

1616
def pkg_commit_hash(pkg_path):
1717
''' Get short form of commit hash given directory `pkg_path`
@@ -62,6 +62,8 @@ def pkg_commit_hash(pkg_path):
6262
cwd=pkg_path, shell=True)
6363
repo_commit, _ = proc.communicate()
6464
if repo_commit:
65+
if PY3:
66+
repo_commit = repo_commit.decode()
6567
return 'repository', repo_commit.strip()
6668
return '(none found)', '<not found>'
6769

0 commit comments

Comments
 (0)