Skip to content

Commit

Permalink
refactor: Replace deprecated django.utils.http.urlquote
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards committed May 12, 2023
1 parent 075aed7 commit b5d9e9b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ietf/ietfauth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@


from functools import wraps, WRAPPER_ASSIGNMENTS
from urllib.parse import quote as urlquote

from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.core.exceptions import PermissionDenied
from django.db.models import Q
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.utils.http import urlquote

import debug # pyflakes:ignore

Expand Down
3 changes: 2 additions & 1 deletion ietf/nomcom/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@


import functools
from urllib.parse import quote as urlquote

from django.urls import reverse
from django.http import HttpResponseRedirect
from django.utils.http import urlquote



def nomcom_private_key_required(view_func):
Expand Down
2 changes: 1 addition & 1 deletion ietf/secr/utils/decorators.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright The IETF Trust 2013-2020, All Rights Reserved
from functools import wraps
from urllib.parse import quote as urlquote

from django.conf import settings
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.utils.http import urlquote

from ietf.ietfauth.utils import has_role
from ietf.doc.models import Document
Expand Down
2 changes: 1 addition & 1 deletion ietf/sync/iana.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
import requests

from email.utils import parsedate_to_datetime
from urllib.parse import quote as urlquote

from django.conf import settings
from django.utils import timezone
from django.utils.encoding import smart_bytes, force_str
from django.utils.http import urlquote

import debug # pyflakes:ignore

Expand Down

3 comments on commit b5d9e9b

@TruelovesRealDeal

This comment was marked as spam.

@TruelovesRealDeal

This comment was marked as spam.

@TruelovesRealDeal

This comment was marked as spam.

Please sign in to comment.