def app_has_custom(app, attr):
 return mro_lookup(app.__class__, attr, stop={Celery, object}, monkey_patched=[__name__])

def app_has_custom ( app , attr ) : return mro_lookup ( app . __class__ , attr , stop = { Celery , object } , monkey_patched = [ __name__ ] )
return true if app has customized method attr .