Skip to content

Commit ffa764b

Browse files
committed
Refactor for clarity.
1 parent 358505b commit ffa764b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gitbrowse/browser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def handle_input(self, mode, data):
6666
self._draw()
6767

6868
def get_status(self):
69-
return '%s @ %s by %s: %s' % (
70-
self.file_history.path,
71-
self.file_history.current_commit.sha[:7],
72-
self.file_history.current_commit.author,
73-
self.file_history.current_commit.message,
74-
)
69+
return '%(path)s @ %(sha)s by %(author)s: %(message)s' % {
70+
'path': self.file_history.path,
71+
'sha': self.file_history.current_commit.sha[:7],
72+
'author': self.file_history.current_commit.author,
73+
'message': self.file_history.current_commit.message,
74+
}
7575

7676
def _move_commit(self, method_name):
7777
start = self.file_history.current_commit.sha

0 commit comments

Comments
 (0)