We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b85ee commit 69d7a0cCopy full SHA for 69d7a0c
git/refs/log.py
@@ -39,10 +39,9 @@ def __repr__(self):
39
res = self.format()
40
if PY3:
41
return res
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
- return res.encode(defenc)
+ # repr must return a string, which it will auto-encode from unicode using the default encoding.
+ # This usually fails, so we encode ourselves
+ return res.encode(defenc)
46
47
def format(self):
48
""":return: a string suitable to be placed in a reflog file"""
0 commit comments