summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-03 12:57:24 +0200
committerwm4 <wm4@nowhere>2020-04-03 12:57:24 +0200
commiteeb711f5f3e6222a890ea61b0294a10d8270b85b (patch)
tree9eb9a8e1790785e9111cd3145c536fe27b649e6d
parentb6655dd72cb91c20198b211c2afbce6f136b8f08 (diff)
downloadmpv-eeb711f5f3e6222a890ea61b0294a10d8270b85b.tar.bz2
mpv-eeb711f5f3e6222a890ea61b0294a10d8270b85b.tar.xz
umpv: convert to python 3
Sigh.
-rwxr-xr-xTOOLS/umpv4
1 files changed, 2 insertions, 2 deletions
diff --git a/TOOLS/umpv b/TOOLS/umpv
index 4beac03072..762e73a622 100755
--- a/TOOLS/umpv
+++ b/TOOLS/umpv
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
This script emulates "unique application" functionality on Linux. When starting
@@ -76,7 +76,7 @@ if sock:
# escape: \ \n "
f = f.replace("\\", "\\\\").replace("\"", "\\\"").replace("\n", "\\n")
f = "\"" + f + "\""
- sock.send("raw loadfile " + f + " append\n")
+ sock.send(("raw loadfile " + f + " append\n").encode("utf-8"))
else:
# Let mpv recreate socket if it doesn't already exist.