diff options
author | jaseg <code@jaseg.net> | 2015-11-01 18:21:51 +0100 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2015-11-01 18:22:54 +0100 |
commit | fb1704c4dc5dbbb464d82382277ffab7bb0e4a27 (patch) | |
tree | b33a22a305ba2142a09aedeaec1ff830c80ee803 | |
parent | 28b761627f7a39d81936abd07c0eeeb8a804c793 (diff) | |
download | python-mpv-fb1704c4dc5dbbb464d82382277ffab7bb0e4a27.tar.gz python-mpv-fb1704c4dc5dbbb464d82382277ffab7bb0e4a27.tar.bz2 python-mpv-fb1704c4dc5dbbb464d82382277ffab7bb0e4a27.zip |
Fixed accidental python2-ism in ynbool. Fixes #1
Thanks to u8sand from github for this.
-rw-r--r-- | mpv.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -231,8 +231,8 @@ class ynbool: def __init__(self, val=False): self.val = bool(val and val not in (b'no', 'no')) - def __nonzero__(self): - return self.val + def __bool__(self): + return bool(self.val) def __str__(self): return 'yes' if self.val else 'no' |