diff options
author | jaseg <code@jaseg.net> | 2019-12-02 12:32:33 +0100 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2019-12-02 12:32:33 +0100 |
commit | c7a50aec381f69e6d864a8a1c73a6d601f700932 (patch) | |
tree | 71fdb05c9634f9aea5253b827f1c555eedc626d7 /mpv.py | |
parent | 91067fcbd89c92cbeac2532473d687220040ec0a (diff) | |
download | python-mpv-c7a50aec381f69e6d864a8a1c73a6d601f700932.tar.gz python-mpv-c7a50aec381f69e6d864a8a1c73a6d601f700932.tar.bz2 python-mpv-c7a50aec381f69e6d864a8a1c73a6d601f700932.zip |
Fix Python 3.5 compatibility
Diffstat (limited to 'mpv.py')
-rw-r--r-- | mpv.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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\ |