Skip to content

Commit

Permalink
Merge pull request #5341 from dojutsu-user/update-code
Browse files Browse the repository at this point in the history
Remove deprecated code
  • Loading branch information
ericholscher authored Feb 26, 2019
2 parents 061522c + 9f78545 commit 559318c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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

0 comments on commit 559318c

Please sign in to comment.