Show More
@@ -75,9 +75,6 from mercurial.node import ( | |||||
75 | nullrev, |
|
75 | nullrev, | |
76 | short, |
|
76 | short, | |
77 | ) |
|
77 | ) | |
78 | from mercurial.pycompat import ( |
|
|||
79 | open, |
|
|||
80 | ) |
|
|||
81 | from mercurial import ( |
|
78 | from mercurial import ( | |
82 | cmdutil, |
|
79 | cmdutil, | |
83 | commands, |
|
80 | commands, | |
@@ -322,7 +319,7 class patchheader: | |||||
322 | nodeid = None |
|
319 | nodeid = None | |
323 | diffstart = 0 |
|
320 | diffstart = 0 | |
324 |
|
321 | |||
325 |
for line in open(pf, |
|
322 | for line in open(pf, 'rb'): | |
326 | line = line.rstrip() |
|
323 | line = line.rstrip() | |
327 | if line.startswith(b'diff --git') or ( |
|
324 | if line.startswith(b'diff --git') or ( | |
328 | diffstart and line.startswith(b'+++ ') |
|
325 | diffstart and line.startswith(b'+++ ') |
General Comments 0
You need to be logged in to leave comments.
Login now