diff options
author | jaseg <code@jaseg.net> | 2017-08-06 21:45:19 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2017-08-06 21:45:19 +0200 |
commit | 22373ba7baef6692c52998457981b44f69103ec0 (patch) | |
tree | 40942e74760d60e2c6e6f331838565f274112399 | |
parent | cc84e4939b56b6213225a69e422bfea9bccdd252 (diff) | |
download | python-mpv-22373ba7baef6692c52998457981b44f69103ec0.tar.gz python-mpv-22373ba7baef6692c52998457981b44f69103ec0.tar.bz2 python-mpv-22373ba7baef6692c52998457981b44f69103ec0.zip |
Restore compatibility with older libmpv versions
At least v0.26.0 also works with the unfixed version
-rw-r--r-- | mpv.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1029,7 +1029,7 @@ class MPV(object): def __setattr__(self, name, value): try: - if name != 'handle': + if name != 'handle' and not name.startswith('_'): self._set_property(_py_to_mpv(name), value) else: super().__setattr__(name, value) |