| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -682,12 +682,9 @@ def blame_incremental(self, rev, file, **kwargs): | |||
| 682 | 682 | data = self.git.blame(rev, '--', file, p=True, incremental=True, stdout_as_string=False, **kwargs) | |
| 683 | 683 | commits = dict() | |
| 684 | 684 | ||
| 685 | - stream = iter(data.split(b'\n')) | ||
| 685 | + stream = (line for line in data.split(b'\n') if line) | ||
| 686 | 686 | while True: | |
| 687 | 687 | line = next(stream) # when exhausted, casues a StopIteration, terminating this function | |
| 688 | - if line.strip() == '' or line.strip() == b'': | ||
| 689 | - # Skip over empty lines | ||
| 690 | - continue | ||
| 691 | 688 | hexsha, orig_lineno, lineno, num_lines = line.split() | |
| 692 | 689 | lineno = int(lineno) | |
| 693 | 690 | num_lines = int(num_lines) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments