Removes useless wrapper from manager base class

There is no value to adding this extra layer to each method call.
Instead just return the boundmethod object itself.

Change-Id: I0eddb9fcb25bf9e20ae60d200c9538fbc426123c
This commit is contained in:
David Stanek 2014-03-14 12:55:05 +00:00
parent a122624c9d
commit ed1914be49
1 changed files with 2 additions and 6 deletions

View File

@ -72,9 +72,5 @@ class Manager(object):
def __getattr__(self, name):
"""Forward calls to the underlying driver."""
f = getattr(self.driver, name)
@functools.wraps(f)
def _wrapper(*args, **kw):
return f(*args, **kw)
setattr(self, name, _wrapper)
return _wrapper
setattr(self, name, f)
return f