Skip to content

Commit 600f171

Browse files
authored
Remove Python 2.7 dependency (#306)
2 parents f3741ce + 1d55ef4 commit 600f171

File tree

5 files changed

+28
-938
lines changed

5 files changed

+28
-938
lines changed

libtmux/session.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import os
1212

1313
from . import exc, formats
14-
from ._compat import text_type
1514
from .common import (
1615
EnvironmentMixin,
1716
TmuxMappingObject,
@@ -96,7 +95,7 @@ def cmd(self, *args, **kwargs):
9695
Renamed from ``.tmux`` to ``.cmd``.
9796
"""
9897
# if -t is not set in any arg yet
99-
if not any('-t' in text_type(x) for x in args):
98+
if not any('-t' in str(x) for x in args):
10099
# insert -t immediately after 1st arg, as per tmux format
101100
new_args = [args[0]]
102101
new_args += ['-t', self.id]

0 commit comments

Comments
 (0)