summaryrefslogtreecommitdiffstats
path: root/git_command.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 /git_command.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 'git_command.py')
-rw-r--r--git_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_command.py b/git_command.py
index d347dd61..51f5e3c0 100644
--- a/git_command.py
+++ b/git_command.py
@@ -86,7 +86,7 @@ class _GitCall(object):
86 global _git_version 86 global _git_version
87 87
88 if _git_version is None: 88 if _git_version is None:
89 ver_str = git.version() 89 ver_str = git.version().decode('utf-8')
90 if ver_str.startswith('git version '): 90 if ver_str.startswith('git version '):
91 _git_version = tuple( 91 _git_version = tuple(
92 map(int, 92 map(int,