Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated code #5341

Merged
merged 1 commit into from
Feb 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions readthedocs/core/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import re

from django.conf import settings
from django.utils.functional import allow_lazy
from django.utils.functional import keep_lazy
from django.utils.safestring import SafeText, mark_safe
from django.utils.text import slugify as slugify_base
from celery import group, chord
Expand Down Expand Up @@ -197,6 +197,7 @@ def send_email(
)


@keep_lazy(str, SafeText)
def slugify(value, *args, **kwargs):
"""
Add a DNS safe option to slugify.
Expand All @@ -210,9 +211,6 @@ def slugify(value, *args, **kwargs):
return value


slugify = allow_lazy(slugify, str, SafeText)


def safe_makedirs(directory_name):
"""
Safely create a directory.
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
]

admin_urls = [
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/', admin.site.urls),
]

dnt_urls = [
Expand Down