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 fa723f7 commit f5e3cabCopy full SHA for f5e3cab
nipype/pkg_info.py
@@ -11,7 +11,7 @@
11
import subprocess
12
13
COMMIT_INFO_FNAME = 'COMMIT_INFO.txt'
14
-
+PY3 = sys.version_info[0] >= 3
15
16
def pkg_commit_hash(pkg_path):
17
''' Get short form of commit hash given directory `pkg_path`
@@ -62,6 +62,8 @@ def pkg_commit_hash(pkg_path):
62
cwd=pkg_path, shell=True)
63
repo_commit, _ = proc.communicate()
64
if repo_commit:
65
+ if PY3:
66
+ repo_commit = repo_commit.decode()
67
return 'repository', repo_commit.strip()
68
return '(none found)', '<not found>'
69
0 commit comments