Skip to content

Commit 5188548

Browse files
committed
Remove print()
1 parent 9558f1c commit 5188548

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

tmuxp/cli.py

-27
Original file line numberDiff line numberDiff line change
@@ -739,13 +739,6 @@ def command_shell(
739739
else:
740740
current_pane = util.get_current_pane(server=server)
741741

742-
try:
743-
current_session = session = util.get_session(
744-
server=server, current_pane=current_pane
745-
)
746-
except Exception:
747-
current_session = None
748-
749742
try:
750743
session = util.get_session(
751744
server=server, session_name=session_name, current_pane=current_pane
@@ -760,26 +753,6 @@ def command_shell(
760753
else:
761754
return
762755

763-
if current_session is not None and current_session.id != session.id:
764-
print('in')
765-
if not detached and (
766-
answer_yes
767-
or click.confirm(
768-
'Switch / attach to %s and run shell from there?'
769-
% click.style(session_name, fg='green'),
770-
default=True,
771-
)
772-
):
773-
if current_session.id != session.id:
774-
session.attached_window.attached_pane.send_keys(
775-
'tmuxp shell', enter=True
776-
)
777-
if 'TMUX' in os.environ:
778-
session.switch_client()
779-
else:
780-
session.attach_session()
781-
return
782-
783756
if current_pane['session_id'] != session.id:
784757
current_pane = None
785758

tmuxp/util.py

-4
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,10 @@ def get_window(session, window_name=None, current_pane=None):
134134
if not window:
135135
raise exc.TmuxpException('Window not found: %s' % window_name)
136136
elif current_pane is not None:
137-
print('get_window: current_pane')
138137
window = session.find_where({'window_id': current_pane['window_id']})
139138
else:
140-
print('get_window: else')
141139
window = session.list_windows()[0]
142140

143-
print(f'get_window: {window}')
144-
145141
return window
146142

147143

0 commit comments

Comments
 (0)