Show More
@@ -22,7 +22,6 from .node import ( | |||
|
22 | 22 | sha1nodeconstants, |
|
23 | 23 | short, |
|
24 | 24 | ) |
|
25 | from .pycompat import open | |
|
26 | 25 | from . import ( |
|
27 | 26 | copies, |
|
28 | 27 | diffhelper, |
@@ -2382,7 +2381,7 def patchbackend( | |||
|
2382 | 2381 | |
|
2383 | 2382 | store = filestore() |
|
2384 | 2383 | try: |
|
2385 |
fp = open(patchobj, |
|
|
2384 | fp = open(patchobj, 'rb') | |
|
2386 | 2385 | except TypeError: |
|
2387 | 2386 | fp = patchobj |
|
2388 | 2387 | try: |
@@ -2458,7 +2457,7 def patch( | |||
|
2458 | 2457 | def changedfiles(ui, repo, patchpath, strip=1, prefix=b''): |
|
2459 | 2458 | backend = fsbackend(ui, repo.root) |
|
2460 | 2459 | prefix = _canonprefix(repo, prefix) |
|
2461 |
with open(patchpath, |
|
|
2460 | with open(patchpath, 'rb') as fp: | |
|
2462 | 2461 | changed = set() |
|
2463 | 2462 | for state, values in iterhunks(fp): |
|
2464 | 2463 | if state == b'file': |
General Comments 0
You need to be logged in to leave comments.
Login now