Disallow _private methods to be hooked

このコミットが含まれているのは:
Chase Sterling 2016-07-13 21:05:49 -04:00
コミット 533e52945d
1個のファイルの変更3行の追加0行の削除

ファイルの表示

@ -27,6 +27,9 @@ class HookMixinMeta(type):
hookable = []
for key, value in attrs.items():
# Disallow hooking methods which start with an underscore (allow __init__ etc. still)
if key.startswith('_') and not key.startswith('__'):
continue
if callable(value):
attrs[key] = hook_func(key, value)
hookable.append(key)