From 288972392778326ddfe0516b04bf9e8be3ab405d Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 14 Jul 2022 14:09:21 +0200 Subject: [PATCH] Remove extra line. --- rest_framework/compat.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 5b76b2a2d..ac5cbc572 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -159,8 +159,6 @@ if django.VERSION >= (4, 2): # which is slightly different from the one in 4.2, it needs # the compatibility shim as well. from django.utils.http import parse_header_parameters - parse_header_parameters = parse_header_parameters - else: # Django <= 4.1: create a compatibility shim for parse_header_parameters from django.http.multipartparser import parse_header