~netlandish/django-wiki

e67bc5b700d4494f55016bd9c4629aeb466a74ad — Raffaele Salmaso 6 years ago feffe2b
Don't import from __future__.
M testproject/manage.py => testproject/manage.py +0 -2
@@ 1,6 1,4 @@
#!/usr/bin/env python
from __future__ import unicode_literals

import os
import sys


M testproject/testproject/settings/__init__.py => testproject/testproject/settings/__init__.py +0 -3
@@ 1,6 1,3 @@
from __future__ import unicode_literals, absolute_import


try:
    from .local import *
except ImportError:

M testproject/testproject/settings/base.py => testproject/testproject/settings/base.py +0 -2
@@ 8,8 8,6 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""

from __future__ import unicode_literals

import os

from django.core.urlresolvers import reverse_lazy

M testproject/testproject/settings/codehilite.py => testproject/testproject/settings/codehilite.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from testproject.settings import *
from testproject.settings.local import *


M testproject/testproject/settings/customauthuser.py => testproject/testproject/settings/customauthuser.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

import os  # noqa @UnusedImport

from .base import *  # noqa @UnusedWildImport

M testproject/testproject/settings/haystack.py => testproject/testproject/settings/haystack.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from .base import *  # noqa @UnusedWildImport



M testproject/testproject/settings/sendfile.py => testproject/testproject/settings/sendfile.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from .base import *  # noqa @UnusedWildImport



M testproject/testproject/urls.py => testproject/testproject/urls.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin

M testproject/testproject/wsgi.py => testproject/testproject/wsgi.py +0 -2
@@ 13,8 13,6 @@ middleware here, or combine a Django application with an application of another
framework.

"""
from __future__ import unicode_literals

import os
import sys


M tests/base.py => tests/base.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

import os
import unittest


M tests/core/test_accounts.py => tests/core/test_accounts.py +0 -3
@@ 1,6 1,3 @@
from __future__ import print_function, unicode_literals


from django.conf import settings as django_settings
from django.contrib.auth import authenticate
from django.shortcuts import resolve_url

M tests/core/test_basic.py => tests/core/test_basic.py +0 -2
@@ 1,5 1,3 @@
from __future__ import print_function, unicode_literals

from django.test import TestCase

from wiki.conf import settings as wiki_settings

M tests/core/test_commands.py => tests/core/test_commands.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

import os
import sys
import tempfile

M tests/core/test_managers.py => tests/core/test_managers.py +0 -2
@@ 4,8 4,6 @@ because the pattern of building them is different from Django
1.5 to 1.6 to 1.7 so there will be 3 patterns in play at the
same time.
"""
from __future__ import print_function, unicode_literals

from wiki.models import Article, URLPath
from wiki.plugins.attachments.models import Attachment


M tests/core/test_markdown.py => tests/core/test_markdown.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

import markdown
from django.test import TestCase
from mock import patch

M tests/core/test_models.py => tests/core/test_models.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from django.apps import apps
from django.conf.urls import url
from django.contrib.auth import get_user_model

M tests/core/test_template_filters.py => tests/core/test_template_filters.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from django.contrib.auth import get_user_model
from wiki.models import Article, ArticleRevision
from wiki.templatetags.wiki_tags import (can_delete, can_moderate, can_read,

M tests/core/test_template_tags.py => tests/core/test_template_tags.py +0 -3
@@ 1,9 1,6 @@
"""
Almost all test cases covers both tag calling and template using.
"""

from __future__ import print_function, unicode_literals

from django.conf import settings as django_settings
from django.contrib.contenttypes.models import ContentType
from django.http import HttpRequest

M tests/core/test_urls.py => tests/core/test_urls.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from django.conf.urls import url
from django.contrib.auth import get_user_model
from django.contrib.sites.models import Site

M tests/core/test_views.py => tests/core/test_views.py +0 -2
@@ 1,5 1,3 @@
from __future__ import print_function, unicode_literals

import pprint

from django.contrib.auth import authenticate

M tests/plugins/attachments/test_commands.py => tests/plugins/attachments/test_commands.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

import os
import tempfile


M tests/plugins/attachments/test_views.py => tests/plugins/attachments/test_views.py +0 -2
@@ 1,5 1,3 @@
from __future__ import print_function, unicode_literals

from io import BytesIO

from django.core.files.uploadedfile import InMemoryUploadedFile

M tests/plugins/globalhistory/__init__.py => tests/plugins/globalhistory/__init__.py +0 -1
@@ 1,1 0,0 @@
from __future__ import absolute_import

M tests/plugins/globalhistory/test_globalhistory.py => tests/plugins/globalhistory/test_globalhistory.py +0 -2
@@ 1,5 1,3 @@
from __future__ import print_function, unicode_literals

from django.core.urlresolvers import reverse
from wiki.models import URLPath


M tests/plugins/images/__init__.py => tests/plugins/images/__init__.py +0 -1
@@ 1,1 0,0 @@
from __future__ import absolute_import

M tests/plugins/images/test_views.py => tests/plugins/images/test_views.py +0 -2
@@ 1,5 1,3 @@
from __future__ import print_function, unicode_literals

import base64
from io import BytesIO


M tests/plugins/links/test_links.py => tests/plugins/links/test_links.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

import markdown
from django.core.urlresolvers import reverse_lazy
from django.test import TestCase

M tests/plugins/macros/test_toc.py => tests/plugins/macros/test_toc.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

import markdown
from django.test import TestCase
from wiki.plugins.macros.mdx.toc import WikiTocExtension

M tests/testdata/models.py => tests/testdata/models.py +0 -2
@@ 1,5 1,3 @@
from __future__ import absolute_import

from django.contrib.auth.models import AbstractUser
from django.db import models


M tests/testdata/urls.py => tests/testdata/urls.py +0 -2
@@ 1,5 1,3 @@
from __future__ import unicode_literals

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin