8000 dev: code formatting · ag-python-qt/git-cola@1d4f888 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 1d4f888

Browse files
committed
dev: code formatting
Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent 56472ba commit 1d4f888

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

cola/models/stash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ def do(self):
109109
else:
110110
title = N_('Error')
111111
cmdargs = core.list2cmdline(args)
112-
Interaction.command_error(
113-
title, 'git stash ' + cmdargs, status, out, err)
112+
Interaction.command_error(title, 'git stash ' + cmdargs, status, out, err)
114113

115114
self.model.update_status()
116115

cola/widgets/branch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def task(self):
5656

5757
class BranchesWidget(QtWidgets.QFrame):
5858
"""A widget for displaying and performing operations on branches"""
59+
5960
def __init__(self, context, parent):
6061
QtWidgets.QFrame.__init__(self, parent)
6162
self.model = model = context.model
@@ -118,6 +119,7 @@ def refresh(self):
118119
# pylint: disable=too-many-ancestors
119120
class BranchesTreeWidget(standard.TreeWidget):
120121
"""A tree widget for displaying branches"""
122+
121123
updated = Signal()
122124

123125
def __init__(self, context, parent=None):

cola/widgets/stash.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def __init__(self, context, model, parent=None):
4343
self.button_rename = qtutils.create_button(
4444
text=N_('Rename'),
4545
tooltip=N_('Rename the selected stash'),
46-
icon=icons.edit())
46+
icon=icons.edit(),
47+
)
4748

4849
self.button_apply = qtutils.create_button(
4950
text=N_('Apply'), tooltip=N_('Apply the selected stash'), icon=icons.ok()
@@ -208,18 +209,21 @@ def update_from_model(self):
208209
self.stash_index.setChecked(False)
209210

210211
def stash_rename(self):
211-
"""Renames the currently selected stash
212-
"""
212+
"""Renames the currently selected stash"""
213213
selection = self.selected_stash()
214214
name = self.selected_name()
215215
new_name, ok = qtutils.prompt(
216-
N_('Enter a new name for the stash'), text=name,
217-
title=N_('Rename Stash'), parent=self)
216+
N_('Enter a new name for the stash'),
217+
text=name,
218+
title=N_('Rename Stash'),
219+
parent=self,
220+
)
218221
if not ok or not new_name:
219222
return
220223
if new_name == name:
221224
Interaction.information(
222-
N_('No change made'), N_('The stash has not been renamed'))
225+
N_('No change made'), N_('The stash has not been renamed')
226+
)
223227
return
224228
context = self.context
225229
cmds.do(stash.RenameStash, context, selection, new_name)

0 commit comments

Comments
 (0)
0