mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 23:23:06 +11:00
Deprecation removal
This commit is contained in:
parent
c77548332f
commit
380d81b4f4
3 changed files with 1 additions and 8 deletions
|
@ -1,4 +0,0 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
|
||||
from .test_api import *
|
||||
from .test_snippet import *
|
|
@ -9,9 +9,8 @@ from django.test import TestCase
|
|||
from django.test.client import Client
|
||||
from django.test.utils import override_settings
|
||||
|
||||
from dpaste.highlight import PygmentsHighlighter
|
||||
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
|
||||
|
||||
|
||||
|
|
|
@ -295,8 +295,6 @@ class APIView(View):
|
|||
# -----------------------------------------------------------------------------
|
||||
|
||||
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)
|
||||
|
||||
def server_error(request, template_name='dpaste/500.html'):
|
||||
|
|
Loading…
Reference in a new issue