wagtail/wagtail/wagtailredirects
Tim Heap a0af3d6685 Ensure absolute_import, unicode_literals imported in all files
Drone will now check that

    from __future__ absolute_import, unicode_literals

is part of every Python source file, to ensure a consistent experience
across all versions of Python.

See #2392 for an instance where missing `unicode_literals` was causing
problems.

Add missing absolute_import, unicode_literals to all files

Explicitly ensure strings are of the correct types

Now that unicode_literals is in every file, some things that used to
be py2 `str`s were now `unicode` instead. This caused issues with
generated class / function names, which must be `str` in all versions of
Python. This means bytes in py2, and unicode in py3. A test also checked
for the incorrect type of SafeString. HTML content should always be
unicode, so this has been fixed.
2016-04-03 13:11:48 +03:00
..
locale Pull new translations from Transifex 2016-03-16 11:04:04 +00:00
migrations Sort imports using isort 2016-03-11 10:48:00 +00:00
templates/wagtailredirects Port wagtailredirects to the permission policy mechanism. 2016-01-25 09:58:00 +00:00
__init__.py Added AppConfig classes for all modules 2014-07-28 15:52:42 +01:00
apps.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
forms.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
middleware.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
models.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
permissions.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
tests.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
urls.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
views.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00
wagtail_hooks.py Ensure absolute_import, unicode_literals imported in all files 2016-04-03 13:11:48 +03:00