Skip to content

Commit

Permalink
remove unicode_literals import
Browse files Browse the repository at this point in the history
  • Loading branch information
nitely committed Mar 3, 2020
1 parent 495b9ba commit 52cf5af
Show file tree
Hide file tree
Showing 258 changed files with 9 additions and 494 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ sudo: false
dist: xenial

python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
- DJANGO=1.11.20
- DJANGO=2.1.8
- DJANGO=2.2.1
- DJANGO=2.2.8
- DJANGO=3.0.3
install:
- pip install --upgrade pip
- pip install .[files]
Expand Down
2 changes: 0 additions & 2 deletions spirit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

__version__ = '0.8.0b'
2 changes: 0 additions & 2 deletions spirit/admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

default_app_config = 'spirit.admin.apps.SpiritAdminConfig'
2 changes: 0 additions & 2 deletions spirit/admin/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.apps import AppConfig


Expand Down
2 changes: 0 additions & 2 deletions spirit/admin/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django import forms
from django.utils.translation import ugettext_lazy as _

Expand Down
2 changes: 0 additions & 2 deletions spirit/admin/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.test import TestCase, RequestFactory
from django.urls import reverse
from django.core.exceptions import PermissionDenied
Expand Down
2 changes: 0 additions & 2 deletions spirit/admin/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.conf.urls import include, url

from . import views
Expand Down
2 changes: 0 additions & 2 deletions spirit/admin/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.shortcuts import render, redirect
from django.contrib import messages
from django.utils.translation import ugettext as _
Expand Down
2 changes: 0 additions & 2 deletions spirit/category/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

default_app_config = 'spirit.category.apps.SpiritCategoryConfig'
2 changes: 0 additions & 2 deletions spirit/category/admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

default_app_config = 'spirit.category.admin.apps.SpiritCategoryAdminConfig'
2 changes: 0 additions & 2 deletions spirit/category/admin/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.apps import AppConfig


Expand Down
1 change: 0 additions & 1 deletion spirit/category/admin/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals
import re

from django import forms
Expand Down
1 change: 0 additions & 1 deletion spirit/category/admin/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals
import datetime

from django.test import TestCase, RequestFactory
Expand Down
2 changes: 0 additions & 2 deletions spirit/category/admin/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.conf.urls import url

from ...core.conf import settings
Expand Down
2 changes: 0 additions & 2 deletions spirit/category/admin/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import get_user_model
from django.urls import reverse
Expand Down
2 changes: 0 additions & 2 deletions spirit/category/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.apps import AppConfig


Expand Down
2 changes: 0 additions & 2 deletions spirit/category/managers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.db import models
from django.db.models import Q

Expand Down
2 changes: 0 additions & 2 deletions spirit/category/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import spirit.core.utils.models

Expand Down
2 changes: 0 additions & 2 deletions spirit/category/migrations/0002_auto_20150728_0442.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


Expand Down
2 changes: 0 additions & 2 deletions spirit/category/migrations/0003_category_is_global.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


Expand Down
2 changes: 0 additions & 2 deletions spirit/category/migrations/0004_category_color.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


Expand Down
2 changes: 0 additions & 2 deletions spirit/category/migrations/0005_category_reindex_at.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import django.utils.timezone

Expand Down
2 changes: 0 additions & 2 deletions spirit/category/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.urls import reverse
Expand Down
2 changes: 0 additions & 2 deletions spirit/category/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

import datetime
import importlib

Expand Down
2 changes: 0 additions & 2 deletions spirit/category/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.conf.urls import url

from . import views
Expand Down
2 changes: 0 additions & 2 deletions spirit/category/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.views.generic import ListView
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponsePermanentRedirect
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

default_app_config = 'spirit.comment.apps.SpiritCommentConfig'
2 changes: 0 additions & 2 deletions spirit/comment/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.apps import AppConfig


Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

default_app_config = 'spirit.comment.bookmark.apps.SpiritCommentBookmarkConfig'
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.apps import AppConfig


Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django import forms

from .models import CommentBookmark
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings

Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/migrations/0002_auto_20150828_2003.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings

Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _

Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.test import TestCase
from django.urls import reverse
from django.template import Template, Context
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.conf.urls import url

from . import views
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/bookmark/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from django.shortcuts import redirect
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

default_app_config = 'spirit.comment.flag.apps.SpiritCommentFlagConfig'
2 changes: 0 additions & 2 deletions spirit/comment/flag/admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

default_app_config = 'spirit.comment.flag.admin.apps.SpiritCommentFlagAdminConfig'
2 changes: 0 additions & 2 deletions spirit/comment/flag/admin/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.apps import AppConfig


Expand Down
4 changes: 1 addition & 3 deletions spirit/comment/flag/admin/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django import forms

from ..models import CommentFlag
Expand All @@ -19,4 +17,4 @@ def __init__(self, user=None, *args, **kwargs):

def save(self, commit=True):
self.instance.moderator = self.user
return super(CommentFlagForm, self).save(commit)
return super(CommentFlagForm, self).save(commit)
2 changes: 0 additions & 2 deletions spirit/comment/flag/admin/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.conf.urls import url

from . import views
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/admin/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse
from django.contrib import messages
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.apps import AppConfig


Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django import forms
from django.utils.translation import ugettext_lazy as _
from django.db import IntegrityError, transaction
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/migrations/0002_auto_20150828_2003.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings

Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils import timezone
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.test import TestCase
from django.urls import reverse

Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.conf.urls import url

from . import views
Expand Down
2 changes: 0 additions & 2 deletions spirit/comment/flag/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect, get_object_or_404

Expand Down
Loading

0 comments on commit 52cf5af

Please sign in to comment.