Permalink
Browse files

import unicode_literals

and remove it from empty __init__.py files
  • Loading branch information...
fyfe committed Feb 2, 2018
1 parent 87e8a32 commit 3159eca2966a65ea956664365a714b17dac9f4f6
@@ -11,7 +11,10 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
from __future__ import unicode_literals
import os
# import sys
# If extensions (or modules to document with autodoc) are in another directory,
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Import these to force registration of checks
from . import settings_checks # NOQA:F401
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -171,33 +171,33 @@ def utf7SequenceToUTF8(seq): # NOQA:N802
if __name__ == "__main__":
# print u'bøx'.encode('imap4-utf-7')
# print 'bøx'.encode('imap4-utf-7')
# print 'expected b&APg-x'
# print u'båx'.encode('imap4-utf-7')
# print 'båx'.encode('imap4-utf-7')
# print 'expected b&AOU-x'
print("#######")
print("bøx")
e = imapUTF7Encode(u'bøx')
e = imapUTF7Encode("bøx")
print(e)
print(imapUTF7Decode(e).encode("latin-1"))
print("#######")
print("båx")
e = imapUTF7Encode(u'båx')
e = imapUTF7Encode("båx")
print(e)
print(imapUTF7Decode(e).encode("latin-1"))
print("#######")
print("~/bågø")
e = imapUTF7Encode(u'~/bågø')
e = imapUTF7Encode("~/bågø")
print(e)
print(imapUTF7Decode(e).encode("latin-1"))
print("#######")
print("Ting & Såger")
e = imapUTF7Encode(u'Ting & Såger')
e = imapUTF7Encode("Ting & Såger")
print(e)
print(imapUTF7Decode(e).encode("latin-1"))
@@ -209,7 +209,7 @@ def utf7SequenceToUTF8(seq): # NOQA:N802
print("#######")
print("~/Følder/mailbåx & stuff + more")
n = u'~/Følder/mailbåx & stuff + more'
n = "~/Følder/mailbåx & stuff + more"
e = imapUTF7Encode(n)
print(e)
print(imapUTF7Decode(e).encode("latin-1"))
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1 +0,0 @@
from __future__ import unicode_literals

This file was deleted.

Oops, something went wrong.
@@ -1 +0,0 @@
from __future__ import unicode_literals
@@ -1,5 +1,7 @@
"""RelayDomain serializers."""
from __future__ import unicode_literals
import json
from django.utils.translation import ugettext as _
@@ -1,5 +1,7 @@
"""Transport backend definition."""
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from modoboa.transport import backends
@@ -1,5 +1,7 @@
"""Transport API urls."""
from __future__ import unicode_literals
from rest_framework import routers
from . import viewsets
@@ -1,5 +1,7 @@
"""RelayDomain viewsets."""
from __future__ import unicode_literals
from rest_framework import viewsets
from rest_framework.permissions import DjangoModelPermissions, IsAuthenticated
@@ -1 +1,3 @@
from __future__ import unicode_literals
default_app_config = "modoboa.transport.apps.TransportConfig"
@@ -1,5 +1,7 @@
"""Transport backend."""
from __future__ import unicode_literals
from django import forms
from django.core import validators
from django.utils.translation import ugettext_lazy as _
@@ -1,4 +1,5 @@
"""Transport constants."""
from __future__ import unicode_literals
PERMISSIONS = {
@@ -1,5 +1,7 @@
"""Transport factories."""
from __future__ import unicode_literals
import factory
from . import models
@@ -1,5 +1,7 @@
"""Transport forms."""
from __future__ import unicode_literals
from django import forms
from . import backends, models
@@ -1,4 +1,6 @@
# coding: utf-8
from __future__ import unicode_literals
import os
import tempfile
import unittest

0 comments on commit 3159eca

Please sign in to comment.