Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit903826a

Browse files
committed
Check if byte string is empty for py3 compatibility
1 parent73ab287 commit903826a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/repo/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def blame_incremental(self, rev, file, **kwargs):
685685
stream=iter(data.split(b'\n'))
686686
whileTrue:
687687
line=next(stream)# when exhausted, casues a StopIteration, terminating this function
688-
ifline.strip()=='':
688+
ifline.strip()==''orline.strip()==b'':
689689
# Skip over empty lines
690690
continue
691691
hexsha,orig_lineno,lineno,num_lines=line.split()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp