diff options
author | jaseg <code@jaseg.net> | 2016-08-05 02:17:10 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-08-05 02:17:10 +0200 |
commit | 24c70a5ac8b71dd8787c57d0329d70deac4b7fee (patch) | |
tree | bced9c8d2b13d87b347debbb455f5326404fd1d3 | |
parent | 47919b0ca805fc2889ef67de6a19dcaae6c6927f (diff) | |
download | python-mpv-24c70a5ac8b71dd8787c57d0329d70deac4b7fee.tar.gz python-mpv-24c70a5ac8b71dd8787c57d0329d70deac4b7fee.tar.bz2 python-mpv-24c70a5ac8b71dd8787c57d0329d70deac4b7fee.zip |
Some more lowercase for readability
-rw-r--r-- | mpv.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,14 +52,14 @@ class ErrorCode(object): } @staticmethod - def DEFAULT_ERROR_HANDLER(ec, *args): + def default_error_handler(ec, *args): return ValueError(_mpv_error_string(ec).decode(), ec, *args) @classmethod def raise_for_ec(kls, func, *args): ec = func(*args) ec = 0 if ec > 0 else ec - ex = kls.EXCEPTION_DICT.get(ec , kls.DEFAULT_ERROR_HANDLER) + ex = kls.EXCEPTION_DICT.get(ec , kls.default_error_handler) if ex: raise ex(ec, *args) |