summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.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 /subcmds/sync.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 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index e9d52b7b..d8aec59b 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -761,7 +761,7 @@ class _FetchTimes(object):
761 def _Load(self): 761 def _Load(self):
762 if self._times is None: 762 if self._times is None:
763 try: 763 try:
764 f = open(self._path) 764 f = open(self._path, 'rb')
765 except IOError: 765 except IOError:
766 self._times = {} 766 self._times = {}
767 return self._times 767 return self._times