Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
setup.py: strip newline from git rev-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
ktdreyer committed Jul 20, 2018
1 parent 5252d9c commit e22a567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def run(self):
def sha1(self):
cmd = ['git', 'rev-parse', 'HEAD']
print(' '.join(cmd))
output = subprocess.check_output(cmd)
output = subprocess.check_output(cmd).strip()
if sys.version_info[0] == 2:
return output
return output.decode('utf-8')
Expand Down

0 comments on commit e22a567

Please sign in to comment.