Skip to content

Commit e7d1687

Browse files
committed
pep257, pep8
1 parent 4ad792c commit e7d1687

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tmuxp/window.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def set_window_option(self, option, value):
141141
)
142142

143143
if process.stderr:
144-
if isinstance(process.stderr, list) and len(process.stderr) == int(1):
144+
if isinstance(process.stderr, list) and len(process.stderr):
145145
process.stderr = process.stderr[0]
146146
raise ValueError(
147147
'tmux set-window-option -t%s:%s %s %s\n' % (
@@ -226,14 +226,12 @@ def show_window_option(self, option, g=False):
226226
return window_option[1]
227227

228228
def rename_window(self, new_name):
229-
230229
"""Return :class:`Window` object ``$ tmux rename-window <new_name>``.
231230
232231
:param new_name: name of the window
233232
:type new_name: string
234233
235234
"""
236-
# new_name = pipes.quote(new_name)
237235

238236
import shlex
239237
lex = shlex.shlex(new_name)
@@ -310,7 +308,11 @@ def select_pane(self, target_pane):
310308
"""
311309

312310
if target_pane in ['-l', '-U', '-D', '-L', '-R']:
313-
proc = self.tmux('select-pane', '-t%s' % self.get('window_id'), target_pane)
311+
proc = self.tmux(
312+
'select-pane',
313+
'-t%s' % self.get('window_id'),
314+
target_pane
315+
)
314316
else:
315317
proc = self.tmux('select-pane', '-t%s' % target_pane)
316318

0 commit comments

Comments
 (0)