mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-05-29 22:29:36 +00:00
Fix some python3 encoding issues
* Add .decode('utf-8') where needed
* Add 'b' to `open` where needed, and remove where unnecessary
Change-Id: I0f03ecf9ed1a78e3b2f15f9469deb9aaab698657
This commit is contained in:
committed by
Chirayu Desai
parent
ce201a5311
commit
0eb35cbe50
+1
-1
@@ -1165,7 +1165,7 @@ class Project(object):
|
||||
last_mine = None
|
||||
cnt_mine = 0
|
||||
for commit in local_changes:
|
||||
commit_id, committer_email = commit.split(' ', 1)
|
||||
commit_id, committer_email = commit.decode('utf-8').split(' ', 1)
|
||||
if committer_email == self.UserEmail:
|
||||
last_mine = commit_id
|
||||
cnt_mine += 1
|
||||
|
||||
Reference in New Issue
Block a user