Permalink
Browse files

Don't import absolut_import, it's been optional since Python 2.5

  • Loading branch information...
atombrella authored and benjaoming committed Nov 22, 2017
1 parent d3ffac2 commit 274b09c74496a5dc571a0a0a352cc8887de586e9
Showing with 90 additions and 90 deletions.
  1. +1 −1 docs/conf.py
  2. +1 −1 setup.py
  3. +1 −1 src/wiki/admin.py
  4. +1 −1 src/wiki/apps.py
  5. +1 −1 src/wiki/conf/settings.py
  6. +1 −1 src/wiki/core/compat.py
  7. +1 −1 src/wiki/core/diff.py
  8. +1 −1 src/wiki/core/http.py
  9. +1 −1 src/wiki/core/markdown/__init__.py
  10. +1 −1 src/wiki/core/markdown/mdx/previewlinks.py
  11. +1 −1 src/wiki/core/markdown/mdx/responsivetable.py
  12. +1 −1 src/wiki/core/permissions.py
  13. +1 −1 src/wiki/core/plugins/base.py
  14. +1 −1 src/wiki/core/plugins/loader.py
  15. +1 −1 src/wiki/core/plugins/registry.py
  16. +1 −1 src/wiki/core/utils.py
  17. +1 −1 src/wiki/decorators.py
  18. +1 −1 src/wiki/editors/base.py
  19. +1 −1 src/wiki/editors/markitup.py
  20. +1 −1 src/wiki/forms.py
  21. +1 −1 src/wiki/managers.py
  22. +1 −1 src/wiki/models/article.py
  23. +1 −1 src/wiki/models/pluginbase.py
  24. +1 −1 src/wiki/models/urlpath.py
  25. +1 −1 src/wiki/plugins/attachments/admin.py
  26. +1 −1 src/wiki/plugins/attachments/forms.py
  27. +1 −1 src/wiki/plugins/attachments/markdown_extensions.py
  28. +1 −1 src/wiki/plugins/attachments/models.py
  29. +1 −1 src/wiki/plugins/attachments/settings.py
  30. +1 −1 src/wiki/plugins/attachments/urls.py
  31. +1 −1 src/wiki/plugins/attachments/views.py
  32. +1 −1 src/wiki/plugins/attachments/wiki_plugin.py
  33. +1 −1 src/wiki/plugins/globalhistory/settings.py
  34. +1 −1 src/wiki/plugins/globalhistory/views.py
  35. +1 −1 src/wiki/plugins/globalhistory/wiki_plugin.py
  36. +1 −1 src/wiki/plugins/haystack/search_indexes.py
  37. +1 −1 src/wiki/plugins/haystack/views.py
  38. +1 −1 src/wiki/plugins/help/wiki_plugin.py
  39. +1 −1 src/wiki/plugins/images/admin.py
  40. +1 −1 src/wiki/plugins/images/forms.py
  41. +1 −1 src/wiki/plugins/images/markdown_extensions.py
  42. +1 −1 src/wiki/plugins/images/models.py
  43. +1 −1 src/wiki/plugins/images/settings.py
  44. +1 −1 src/wiki/plugins/images/templatetags/wiki_images_tags.py
  45. +1 −1 src/wiki/plugins/images/views.py
  46. +1 −1 src/wiki/plugins/images/wiki_plugin.py
  47. +1 −1 src/wiki/plugins/links/mdx/djangowikilinks.py
  48. +1 −1 src/wiki/plugins/links/mdx/urlize.py
  49. +1 −1 src/wiki/plugins/links/settings.py
  50. +1 −1 src/wiki/plugins/links/views.py
  51. +1 −1 src/wiki/plugins/links/wiki_plugin.py
  52. +1 −1 src/wiki/plugins/macros/mdx/macro.py
  53. +1 −1 src/wiki/plugins/macros/mdx/toc.py
  54. +1 −1 src/wiki/plugins/macros/mdx/wikilinks.py
  55. +1 −1 src/wiki/plugins/macros/settings.py
  56. +1 −1 src/wiki/plugins/macros/templatetags/wiki_macro_tags.py
  57. +1 −1 src/wiki/plugins/macros/wiki_plugin.py
  58. +1 −1 src/wiki/plugins/notifications/forms.py
  59. +1 −1 src/wiki/plugins/notifications/models.py
  60. +1 −1 src/wiki/plugins/notifications/settings.py
  61. +1 −1 src/wiki/plugins/notifications/util.py
  62. +1 −1 src/wiki/plugins/notifications/views.py
  63. +1 −1 src/wiki/plugins/notifications/wiki_plugin.py
  64. +1 −1 src/wiki/templatetags/wiki_tags.py
  65. +1 −1 src/wiki/urls.py
  66. +1 −1 src/wiki/views/accounts.py
  67. +1 −1 src/wiki/views/article.py
  68. +1 −1 src/wiki/views/mixins.py
  69. +1 −1 testproject/manage.py
  70. +1 −1 testproject/testproject/settings/codehilite.py
  71. +1 −1 testproject/testproject/settings/customauthuser.py
  72. +1 −1 testproject/testproject/settings/haystack.py
  73. +1 −1 testproject/testproject/settings/sendfile.py
  74. +1 −1 testproject/testproject/urls.py
  75. +1 −1 testproject/testproject/wsgi.py
  76. +1 −1 tests/base.py
  77. +1 −1 tests/core/test_accounts.py
  78. +1 −1 tests/core/test_basic.py
  79. +1 −1 tests/core/test_commands.py
  80. +1 −1 tests/core/test_managers.py
  81. +1 −1 tests/core/test_markdown.py
  82. +1 −1 tests/core/test_models.py
  83. +1 −1 tests/core/test_template_filters.py
  84. +1 −1 tests/core/test_template_tags.py
  85. +1 −1 tests/core/test_urls.py
  86. +1 −1 tests/core/test_views.py
  87. +1 −1 tests/plugins/attachments/test_commands.py
  88. +1 −1 tests/plugins/links/test_links.py
  89. +1 −1 tests/plugins/macros/test_toc.py
  90. +1 −1 tests/testdata/urls.py
View
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from __future__ import print_function, unicode_literals
import inspect
import os
View
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
from __future__ import print_function
import os
import sys
View
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import forms
from django.contrib import admin
View
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import bleach
View
@@ -1,6 +1,6 @@
"""Abstraction layer to deal with Django related changes in order to keep
compatibility with several Django versions simultaneously."""
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf import settings as django_settings
View
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import difflib
View
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import mimetypes
import os
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import bleach
import markdown
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import markdown
from markdown.treeprocessors import Treeprocessor
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import markdown
from markdown.treeprocessors import Treeprocessor
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from wiki.conf import settings
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import forms
from django.utils.translation import ugettext as _
@@ -5,7 +5,7 @@
Thanks for the technique!
"""
from __future__ import absolute_import, print_function, unicode_literals
from __future__ import print_function, unicode_literals
from importlib import import_module
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from importlib import import_module
View
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import json
from importlib import import_module
View
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from functools import wraps
View
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import forms
@@ -1,5 +1,5 @@
# -*- coding: utf-8
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import forms
from django.forms.utils import flatatt
View
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import random
import string
View
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import django
from django.db import models
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
@@ -19,7 +19,7 @@
"""
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.db import models
from django.db.models import signals
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from __future__ import print_function, unicode_literals
import logging
import warnings
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.contrib import admin
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import tempfile
import zipfile
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import re
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from __future__ import print_function, unicode_literals
import os
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf import settings as django_settings
from django.core.exceptions import ImproperlyConfigured
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf.urls import url
from wiki.plugins.attachments import views
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf.urls import include, url
from django.utils.translation import ugettext as _
@@ -1,3 +1,3 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
SLUG = 'globalhistory'
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.contrib.auth.decorators import login_required
from django.db.models import F
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf.urls import url
from wiki.core.plugins import registry
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from haystack import indexes
from wiki import models
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from haystack.backends import SQ
from haystack.inputs import AutoQuery
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.utils.translation import ugettext as _
from wiki.core.plugins import registry
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import forms
from django.contrib import admin
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import forms
from django.utils.translation import ugettext_lazy as _
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import re
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import os.path
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf import settings as django_settings
from wiki.conf import settings as wiki_settings
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import template
from wiki.plugins.images import models, settings
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import logging
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf.urls import url
from django.utils.translation import ugettext as _
@@ -19,7 +19,7 @@
* [Python 2.3+](http://python.org)
* [Markdown 2.0+](http://www.freewisdom.org/projects/python-markdown/)
'''
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from os import path as os_path
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import re
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf import settings as django_settings
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.utils.decorators import method_decorator
from django.views.generic.base import View
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
# -*- coding: utf-8 -*-
from django.conf.urls import url
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import re
@@ -21,7 +21,7 @@
"""
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import re
import unicodedata
@@ -2,7 +2,7 @@
"""
Extend the shipped Markdown extension 'wikilinks'
"""
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
import re
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.conf import settings as django_settings
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import template
from wiki.plugins.macros import settings
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.utils.translation import ugettext as _
from wiki.core.plugins import registry
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django import forms
from django.contrib.contenttypes.models import ContentType
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
@@ -1,4 +1,4 @@
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
# Deprecated
Oops, something went wrong.

0 comments on commit 274b09c

Please sign in to comment.