Deprecation removal

This commit is contained in:
Martin Mahner 2018-04-10 08:04:20 +02:00
parent c77548332f
commit 380d81b4f4
3 changed files with 1 additions and 8 deletions

View file

@ -1,4 +0,0 @@
# -*- encoding: utf-8 -*-
from .test_api import *
from .test_snippet import *

View file

@ -9,9 +9,8 @@ from django.test import TestCase
from django.test.client import Client from django.test.client import Client
from django.test.utils import override_settings from django.test.utils import override_settings
from dpaste.highlight import PygmentsHighlighter
from ..forms import EXPIRE_DEFAULT from ..forms import EXPIRE_DEFAULT
from ..highlight import LEXER_DEFAULT, PLAIN_CODE, PLAIN_TEXT from ..highlight import LEXER_DEFAULT, PLAIN_CODE, PLAIN_TEXT, PygmentsHighlighter
from ..models import Snippet from ..models import Snippet

View file

@ -295,8 +295,6 @@ class APIView(View):
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
def page_not_found(request, exception=None, template_name='dpaste/404.html'): def page_not_found(request, exception=None, template_name='dpaste/404.html'):
if not exception: # Django <1.8
return django_page_not_found(request, template_name=template_name)
return django_page_not_found(request, exception, template_name=template_name) return django_page_not_found(request, exception, template_name=template_name)
def server_error(request, template_name='dpaste/500.html'): def server_error(request, template_name='dpaste/500.html'):