Skip to content

Commit a0a5a89

Browse files
committed
Try to get 2.6 + 3.x compatibility with shlex.shlex
1 parent 0c72732 commit a0a5a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmuxp/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run_before_script(script_file):
3232
"""Function to wrap try/except for subprocess.check_call()."""
3333
try:
3434
proc = subprocess.Popen(
35-
shlex.split(script_file.encode('ascii')),
35+
shlex.split(str(script_file)),
3636
stderr=subprocess.PIPE
3737
)
3838
proc.wait()

0 commit comments

Comments
 (0)