Show More
@@ -1120,9 +1120,10 b' the hunk is left unchanged.' | |||||
1120 | ui.warn(_("editor exited with exit code %d\n") % ret) |
|
1120 | ui.warn(_("editor exited with exit code %d\n") % ret) | |
1121 | continue |
|
1121 | continue | |
1122 | # Remove comment lines |
|
1122 | # Remove comment lines | |
1123 | patchfp = open(patchfn) |
|
1123 | patchfp = open(patchfn, r'rb') | |
1124 | ncpatchfp = stringio() |
|
1124 | ncpatchfp = stringio() | |
1125 | for line in util.iterfile(patchfp): |
|
1125 | for line in util.iterfile(patchfp): | |
|
1126 | line = util.fromnativeeol(line) | |||
1126 | if not line.startswith('#'): |
|
1127 | if not line.startswith('#'): | |
1127 | ncpatchfp.write(line) |
|
1128 | ncpatchfp.write(line) | |
1128 | patchfp.close() |
|
1129 | patchfp.close() |
General Comments 0
You need to be logged in to leave comments.
Login now