def GetRieveldObjForPresubmit(self):

    class ThisIsNotRietveldIssue(object):

        def __nonzero__(self):
            return False

        def __getattr__(self, attr):
            print(("You aren't using Rietveld at the moment, but Gerrit.\nUsing Rietveld in your PRESUBMIT scripts won't work.\nPlease, either change your PRESUBIT to not use rietveld_obj.%s,\nor use Rietveld for codereview.\nSee also http://crbug.com/579160." % attr))
            raise NotImplementedError()
    return ThisIsNotRietveldIssue()
def GetRieveldObjForPresubmit(self):

    class ThisIsNotRietveldIssue(object):

        def __nonzero__(self):
            return False

        def __getattr__(self, attr):
            print(("You aren't using Rietveld at the moment, but Gerrit.\nUsing Rietveld in your PRESUBMIT scripts won't work.\nPlease, either change your PRESUBIT to not use rietveld_obj.%s,\nor use Rietveld for codereview.\nSee also http://crbug.com/579160." % attr))
            raise NotImplementedError()
    return ThisIsNotRietveldIssue()