def __getattr__(self, name):
def func(*args, **kwds):
if not name in DummyShell.direct_calls:
- raise Exception, "Illegal method call %s for DUMMY driver"%(name)
+ raise Exception("Illegal method call %s for DUMMY driver"%(name))
result=getattr(self.proxy, name)(*args, **kwds)
logger.debug('DummyShell %s returned ... '%(name))
return result