def task_has_custom(task, attr):
 return mro_lookup(task.__class__, attr, stop={BaseTask, object}, monkey_patched=[u'celery.app.task'])

def task_has_custom ( task , attr ) : return mro_lookup ( task . __class__ , attr , stop = { BaseTask , object } , monkey_patched = [ u'celery.app.task' ] )
return true if the task overrides attr .