summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--git_refs.py2
-rw-r--r--project.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/git_refs.py b/git_refs.py
index 58c838a6..7feaffb1 100644
--- a/git_refs.py
+++ b/git_refs.py
@@ -139,7 +139,7 @@ class GitRefs(object):
139 139
140 def _ReadLoose1(self, path, name): 140 def _ReadLoose1(self, path, name):
141 try: 141 try:
142 fd = open(path, 'rb') 142 fd = open(path)
143 except IOError: 143 except IOError:
144 return 144 return
145 145
diff --git a/project.py b/project.py
index 4eca9b67..d4c5afd5 100644
--- a/project.py
+++ b/project.py
@@ -1258,7 +1258,7 @@ class Project(object):
1258 if is_new: 1258 if is_new:
1259 alt = os.path.join(self.gitdir, 'objects/info/alternates') 1259 alt = os.path.join(self.gitdir, 'objects/info/alternates')
1260 try: 1260 try:
1261 fd = open(alt, 'rb') 1261 fd = open(alt)
1262 try: 1262 try:
1263 alt_dir = fd.readline().rstrip() 1263 alt_dir = fd.readline().rstrip()
1264 finally: 1264 finally:
@@ -2691,11 +2691,11 @@ class Project(object):
2691 else: 2691 else:
2692 path = os.path.join(self._project.worktree, '.git', HEAD) 2692 path = os.path.join(self._project.worktree, '.git', HEAD)
2693 try: 2693 try:
2694 fd = open(path, 'rb') 2694 fd = open(path)
2695 except IOError as e: 2695 except IOError as e:
2696 raise NoManifestException(path, str(e)) 2696 raise NoManifestException(path, str(e))
2697 try: 2697 try:
2698 line = fd.read() 2698 line = fd.readline()
2699 finally: 2699 finally:
2700 fd.close() 2700 fd.close()
2701 try: 2701 try: