diff options
-rwxr-xr-x | project.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2261,8 +2261,8 @@ class Project(object): | |||
2261 | 2261 | ||
2262 | def _IsValidBundle(self, path, quiet): | 2262 | def _IsValidBundle(self, path, quiet): |
2263 | try: | 2263 | try: |
2264 | with open(path) as f: | 2264 | with open(path, 'rb') as f: |
2265 | if f.read(16) == '# v2 git bundle\n': | 2265 | if f.read(16) == b'# v2 git bundle\n': |
2266 | return True | 2266 | return True |
2267 | else: | 2267 | else: |
2268 | if not quiet: | 2268 | if not quiet: |