summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorChirayu Desai <cdesai@cyanogenmod.org>2013-11-19 18:46:29 +0530
committerChirayu Desai <chirayudesai1@gmail.com>2013-11-21 06:03:22 +0000
commit0eb35cbe5096128e4a760aca6842ecdbea5baf1a (patch)
tree6134f979145140346b3eeeacfd12cbd6572f32d3 /project.py
parentce201a5311c2fe90dce479ee12c078cd26ccc0c4 (diff)
downloadgit-repo-0eb35cbe5096128e4a760aca6842ecdbea5baf1a.tar.gz
Fix some python3 encoding issues
* Add .decode('utf-8') where needed * Add 'b' to `open` where needed, and remove where unnecessary Change-Id: I0f03ecf9ed1a78e3b2f15f9469deb9aaab698657
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/project.py b/project.py
index dec21ab1..66316411 100644
--- a/project.py
+++ b/project.py
@@ -1165,7 +1165,7 @@ class Project(object):
1165 last_mine = None 1165 last_mine = None
1166 cnt_mine = 0 1166 cnt_mine = 0
1167 for commit in local_changes: 1167 for commit in local_changes:
1168 commit_id, committer_email = commit.split(' ', 1) 1168 commit_id, committer_email = commit.decode('utf-8').split(' ', 1)
1169 if committer_email == self.UserEmail: 1169 if committer_email == self.UserEmail:
1170 last_mine = commit_id 1170 last_mine = commit_id
1171 cnt_mine += 1 1171 cnt_mine += 1