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

Commit69d7a0c

Browse files
pratik-anuragByron
authored andcommitted
removed Unnecessary “else” after “return”
1 parent64b85ee commit69d7a0c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎git/refs/log.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ def __repr__(self):
3939
res=self.format()
4040
ifPY3:
4141
returnres
42-
else:
43-
# repr must return a string, which it will auto-encode from unicode using the default encoding.
44-
# This usually fails, so we encode ourselves
45-
returnres.encode(defenc)
42+
# repr must return a string, which it will auto-encode from unicode using the default encoding.
43+
# This usually fails, so we encode ourselves
44+
returnres.encode(defenc)
4645

4746
defformat(self):
4847
""":return: a string suitable to be placed in a reflog file"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp