Merge branch '21535-multi-wf-delete'
[arvados.git] / sdk / python / arvados / __init__.py
index 6303b84f70e82a3c1a670623ccb0c781f1b6e8d9..83f658201ca3b8c8100c7a0497744af9f4cb3f49 100644 (file)
@@ -42,8 +42,7 @@ from .retry import RetryLoop
 # module and you can import it normally, but we make that module callable so
 # all the existing code that says `arvados.api('v1', ...)` still works.
 class _CallableAPIModule(api.__class__):
-    def __call__(self, *args, **kwargs):
-        return self.api(*args, **kwargs)
+    __call__ = staticmethod(api.api)
 api.__class__ = _CallableAPIModule
 
 # Override logging module pulled in via `from ... import *`