Skip to content

Commit 47c2062

Browse files
authored
Merge pull request #2 from mattip/fix-hg
BUG: stdout is bytes, convert to str
2 parents a709f47 + 2f3ee82 commit 47c2062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codespeed/commits/mercurial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def getlogs(endrev, startrev):
6363
if p.returncode != 0:
6464
raise CommitLogError(str(stderr))
6565
else:
66-
stdout = stdout.rstrip(b'\n') # Remove last newline
66+
stdout = str(stdout).rstrip(b'\n') # Remove last newline
6767
logs = []
6868
for log in stdout.split("=newlog=\n"):
6969
elements = []

0 commit comments

Comments
 (0)