File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -305,16 +305,6 @@ def __init__(self):
305305 self .desc = ''
306306 self .text = []
307307
308- # def apply(self, estream):
309- # """ write hunk data into enumerable stream
310- # return strings one by one until hunk is
311- # over
312- #
313- # enumerable stream are tuples (lineno, line)
314- # where lineno starts with 0
315- # """
316- # pass
317-
318308
319309class Patch (object ):
320310 """ Patch for a single file.
@@ -1247,8 +1237,9 @@ def get_line():
12471237 continue
12481238 else :
12491239 if not hline .startswith (b"+" ):
1250- get_line ()
1240+ yield get_line ()
12511241 srclineno += 1
1242+ continue
12521243 line2write = hline [1 :]
12531244 # detect if line ends are consistent in source file
12541245 if sum ([bool (lineends [x ]) for x in lineends ]) == 1 :
Original file line number Diff line number Diff line change @@ -84,4 +84,4 @@ How to create your own I/O Spyder plugins:
8484
8585== Other Spyder plugins ==
8686
87- See the example of the `pylint` third-party plugin in Spyder v2.0.
87+ See the example of the `pylint` third-party plugin in Spyder v2.0.
You can’t perform that action at this time.
0 commit comments