<s> from __future__ import ( unicode_literals , division , absolute_import , print_function ) <EOL> from powerline . bindings . tmux import get_tmux_output <EOL> def attached_clients ( pl , minimum = <NUM_LIT:1> ) : <EOL> '''<STR_LIT>''' <EOL> session_output = get_tmux_output ( pl , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> if not session_output : <EOL> return None <EOL> session_name = session_output . rstrip ( ) . split ( '<STR_LIT:\n>' ) [ <NUM_LIT:0> ] <EOL> attached_clients_output = get_tmux_output ( pl , '<STR_LIT>' , '<STR_LIT>' , session_name ) <EOL> attached_count = len ( attached_clients_output . rstrip ( ) . split ( '<STR_LIT:\n>' ) ) <EOL> return None if attached_count < minimum else str ( attached_count ) </s>
