def has_key(self, key):
        warnings.warn(
            "%s.has_key() is deprecated in favor of the 'in' operator." % self.__class__.__name__,
            RemovedInDjango20Warning
        )
        return key in self
dataset/ETHPy150Open django/django/django/template/context.py/BaseContext.has_key/original