summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index 882a30b..2b2f73b 100644
--- a/mpv.py
+++ b/mpv.py
@@ -1253,7 +1253,7 @@ class MPV(object):
"""
def register(cb):
if name in self._python_streams:
- raise KeyError(f'Python stream name "{name}" is already registered')
+ raise KeyError('Python stream name "{}" is already registered'.format(name))
self._python_streams[name] = (cb, size)
def unregister():
if name not in self._python_streams or\