/usr/lib/python2.7/dist-packages/corsheaders/compat.py is in python-django-cors-headers 2.1.0+github-2.
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 | try:
from django.utils.deprecation import MiddlewareMixin
except ImportError: # pragma: no cover
# Not required for Django <= 1.9, see:
# https://docs.djangoproject.com/en/1.10/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware
MiddlewareMixin = object # pragma: no cover
|