@@ -127,26 +127,26 @@ def inline(sconf):
127127 """
128128
129129 if (
130- 'shell_command' in sconf and
131- isinstance (sconf ['shell_command' ], list ) and
132- len (sconf ['shell_command' ]) == 1
130+ 'shell_command' in sconf and
131+ isinstance (sconf ['shell_command' ], list ) and
132+ len (sconf ['shell_command' ]) == 1
133133 ):
134134 sconf ['shell_command' ] = sconf ['shell_command' ][0 ]
135135
136136 if len (sconf .keys ()) == int (1 ):
137137 sconf = sconf ['shell_command' ]
138138 if (
139- 'shell_command_before' in sconf and
140- isinstance (sconf ['shell_command_before' ], list ) and
141- len (sconf ['shell_command_before' ]) == 1
139+ 'shell_command_before' in sconf and
140+ isinstance (sconf ['shell_command_before' ], list ) and
141+ len (sconf ['shell_command_before' ]) == 1
142142 ):
143143 sconf ['shell_command_before' ] = sconf ['shell_command_before' ][0 ]
144144
145145 # recurse into window and pane config items
146146 if 'windows' in sconf :
147147 sconf ['windows' ] = [
148148 inline (window ) for window in sconf ['windows' ]
149- ]
149+ ]
150150 if 'panes' in sconf :
151151 sconf ['panes' ] = [inline (pane ) for pane in sconf ['panes' ]]
152152
@@ -223,30 +223,30 @@ def expand(sconf, cwd=None, parent=None):
223223 )
224224
225225 if (
226- 'shell_command' in sconf and
227- isinstance (sconf ['shell_command' ], string_types )
226+ 'shell_command' in sconf and
227+ isinstance (sconf ['shell_command' ], string_types )
228228 ):
229229 sconf ['shell_command' ] = [sconf ['shell_command' ]]
230230
231231 if (
232- 'shell_command_before' in sconf and
233- isinstance (sconf ['shell_command_before' ], string_types )
232+ 'shell_command_before' in sconf and
233+ isinstance (sconf ['shell_command_before' ], string_types )
234234 ):
235235 sconf ['shell_command_before' ] = [sconf ['shell_command_before' ]]
236236
237237 if (
238- 'shell_command_before' in sconf and
239- isinstance (sconf ['shell_command_before' ], list )
238+ 'shell_command_before' in sconf and
239+ isinstance (sconf ['shell_command_before' ], list )
240240 ):
241241 sconf ['shell_command_before' ] = [
242242 expandshell (scmd ) for scmd in sconf ['shell_command_before' ]
243- ]
243+ ]
244244
245245 # recurse into window and pane config items
246246 if 'windows' in sconf :
247247 sconf ['windows' ] = [
248248 expand (window , parent = sconf ) for window in sconf ['windows' ]
249- ]
249+ ]
250250 elif 'panes' in sconf :
251251
252252 for pconf in sconf ['panes' ]:
@@ -282,7 +282,9 @@ def expand(sconf, cwd=None, parent=None):
282282 p ['shell_command' ] = []
283283
284284 pconf .update (p )
285- sconf ['panes' ] = [expand (pane , parent = sconf ) for pane in sconf ['panes' ]]
285+ sconf ['panes' ] = [
286+ expand (pane , parent = sconf ) for pane in sconf ['panes' ]
287+ ]
286288
287289 return sconf
288290
@@ -320,21 +322,22 @@ def trickle(sconf):
320322
321323 # Prepend start_directory to relative window commands
322324 if session_start_directory :
323- if not 'start_directory' in windowconfig :
325+ if 'start_directory' not in windowconfig :
324326 windowconfig ['start_directory' ] = session_start_directory
325327 else :
326328 if not any (
327329 windowconfig ['start_directory' ].startswith (a )
328330 for a in ['~' , '/' ]
329331 ):
330332 window_start_path = os .path .join (
331- session_start_directory , windowconfig ['start_directory' ]
333+ session_start_directory ,
334+ windowconfig ['start_directory' ]
332335 )
333336 windowconfig ['start_directory' ] = window_start_path
334337
335338 # We only need to trickle to the window, workspace builder checks wconf
336339 if suppress_history is not None :
337- if not 'suppress_history' in windowconfig :
340+ if 'suppress_history' not in windowconfig :
338341 windowconfig ['suppress_history' ] = suppress_history
339342
340343 for paneconfig in windowconfig ['panes' ]:
0 commit comments