Disallow _private methods to be hooked
Esse commit está contido em:
		
							pai
							
								
									eafff2ae43
								
							
						
					
					
						commit
						533e52945d
					
				
					 1 arquivos alterados com 3 adições e 0 exclusões
				
			
		|  | @ -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) | ||||
|  |  | |||
		Carregando…
	
	Adicionar tabela
		Adicionar um link
		
	
		Referência em uma nova issue