

def call_and_notify(self):
    method = self.method
    method_name = method.__name__
    if WARN_ONLY:
        warnings.warn((message % method_name))
        return self.call()
    else:
        raise DeprecatedPropertyError((message % method_name))

dataset/ETHPy150Open tomchristie/webdriverplus/webdriverplus/deprecation.py DeprecatedProperty.call_and_notify/original