Skip to content

Commit 509a112

Browse files
committed
FIX: hasattr uses getattr, not __hasattr__
1 parent 63e72e2 commit 509a112

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nibabel/deprecated.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ class ModuleProxy(object):
3131
def __init__(self, module_name):
3232
self._module_name = module_name
3333

34-
def __hasattr__(self, key):
35-
mod = __import__(self._module_name, fromlist=[''])
36-
return hasattr(mod, key)
37-
3834
def __getattr__(self, key):
3935
mod = __import__(self._module_name, fromlist=[''])
4036
return getattr(mod, key)

0 commit comments

Comments
 (0)