summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2016-08-05 02:17:10 +0200
committerjaseg <code@jaseg.net>2016-08-05 02:17:10 +0200
commit24c70a5ac8b71dd8787c57d0329d70deac4b7fee (patch)
treebced9c8d2b13d87b347debbb455f5326404fd1d3
parent47919b0ca805fc2889ef67de6a19dcaae6c6927f (diff)
downloadpython-mpv-24c70a5ac8b71dd8787c57d0329d70deac4b7fee.tar.gz
python-mpv-24c70a5ac8b71dd8787c57d0329d70deac4b7fee.tar.bz2
python-mpv-24c70a5ac8b71dd8787c57d0329d70deac4b7fee.zip
Some more lowercase for readability
-rw-r--r--mpv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpv.py b/mpv.py
index ba095ea..880146f 100644
--- a/mpv.py
+++ b/mpv.py
@@ -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)