From da6b9df88ea7cb2e9ae47ca84bfaa9b6d0ca60da Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 23 Jun 2016 00:41:25 -0700 Subject: [PATCH] diff: apply flake8 suggestions Signed-off-by: David Aguilar --- cola/widgets/diff.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cola/widgets/diff.py b/cola/widgets/diff.py index 966f63ef..5df73ba1 100644 --- a/cola/widgets/diff.py +++ b/cola/widgets/diff.py @@ -55,13 +55,12 @@ class DiffSyntaxHighlighter(QtGui.QSyntaxHighlighter): self.color_header = RGB(cfg.color('header', 'bbbbbb')) self.diff_header_fmt = make_format(fg=self.color_header) - self.bold_diff_header_fmt = make_format(fg=self.color_header, - bold=True) + self.bold_diff_header_fmt = make_format(fg=self.color_header, bold=True) self.diff_add_fmt = make_format(fg=self.color_text, - bg=self.color_add) + bg=self.color_add) self.diff_remove_fmt = make_format(fg=self.color_text, - bg=self.color_remove) + bg=self.color_remove) self.bad_whitespace_fmt = make_format(bg=Qt.red) def set_enabled(self, enabled): @@ -124,6 +123,7 @@ class DiffTextEdit(VimMonoTextView): self.highlighter = DiffSyntaxHighlighter(self.document(), whitespace=whitespace) + class DiffEditorWidget(QtGui.QWidget): def __init__(self, parent=None): -- 2.11.4.GIT