1
0
mirror of https://github.com/django/django.git synced 2025-10-29 00:26:07 +00:00

Took advantage of django.utils.six.moves.urllib.*.

This commit is contained in:
Aymeric Augustin
2013-09-05 14:38:59 -05:00
parent ed9cd4fd8b
commit 6a6428a36f
31 changed files with 50 additions and 152 deletions

View File

@@ -9,15 +9,12 @@ import os
import stat
import posixpath
import re
try:
from urllib.parse import unquote
except ImportError: # Python 2
from urllib import unquote
from django.http import (Http404, HttpResponse, HttpResponseRedirect,
HttpResponseNotModified, StreamingHttpResponse)
from django.template import loader, Template, Context, TemplateDoesNotExist
from django.utils.http import http_date, parse_http_date
from django.utils.six.moves.urllib.parse import unquote
from django.utils.translation import ugettext as _, ugettext_noop
def serve(request, path, document_root=None, show_indexes=False):