diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |