From 69d7a0c42cb63dab2f585fb47a08044379f1a549 Mon Sep 17 00:00:00 2001 From: Pratik Anurag Date: Tue, 15 Oct 2019 19:51:55 +0530 Subject: =?UTF-8?q?removed=20Unnecessary=20=E2=80=9Celse=E2=80=9D=20after?= =?UTF-8?q?=20=E2=80=9Creturn=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git/refs/log.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'git/refs/log.py') diff --git a/git/refs/log.py b/git/refs/log.py index fc962680..e8c2d7ad 100644 --- a/git/refs/log.py +++ b/git/refs/log.py @@ -39,10 +39,9 @@ class RefLogEntry(tuple): res = self.format() if PY3: return res - else: - # 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) + # 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) def format(self): """:return: a string suitable to be placed in a reflog file""" -- cgit v1.2.1