This file is indexed.

/usr/lib/python3/dist-packages/axes/apps.py is in python3-django-axes 4.1.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from django import apps


class AppConfig(apps.AppConfig):
    name = 'axes'

    def ready(self):
        from django.conf import settings
        from django.core.exceptions import ImproperlyConfigured

        if settings.CACHES[getattr(settings, 'AXES_CACHE', 'default')]['BACKEND'] == \
                'django.core.cache.backends.locmem.LocMemCache':
            raise ImproperlyConfigured(
                'django-axes does not work properly with LocMemCache as the default cache backend'
                ' please add e.g. a DummyCache backend for axes and configure it with AXES_CACHE'
            )

        from django.contrib.auth.views import LoginView
        from django.utils.decorators import method_decorator

        from axes import signals
        from axes.decorators import axes_dispatch
        from axes.decorators import axes_form_invalid

        LoginView.dispatch = method_decorator(axes_dispatch)(LoginView.dispatch)
        LoginView.form_invalid = method_decorator(axes_form_invalid)(LoginView.form_invalid)