Skip to content

Commit dcaf494

Browse files
committed
Fix pylint by ignoring private access
1 parent 72e2ae5 commit dcaf494

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

readthedocs/proxito/middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def add_user_headers(self, request, response):
186186
if hasattr(request, 'domain'):
187187
# Use a private method to get this
188188
# TODO: In Django 3.2 this has been upgraded to a top-level method
189+
# pylint: disable=protected-access
189190
response_headers = [header.lower() for header in response._headers.keys()]
190191
log.info('Response headers=%s', response_headers)
191192
for http_header in request.domain.http_headers.all():

0 commit comments

Comments
 (0)