Skip to content

Commit

Permalink
Remove __future__ statements unneeded in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
willbarton committed Mar 23, 2020
1 parent f21cc5d commit 3b539f2
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 35 deletions.
2 changes: 0 additions & 2 deletions regulations_example/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-01-27 11:03
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion

Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/models/django.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from datetime import date

from django.core.exceptions import ValidationError
Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/models/pages.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, unicode_literals

import logging
import re
from collections import OrderedDict
Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/parser/integer_conversion.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import string


Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/parser/paragraphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
Paragraph parsing operations that manipulate paragraph IDs are handled
by the patterns.IdLevelState class.
"""
from __future__ import unicode_literals

import re


Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/parser/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
inserted into section content.
"""
from __future__ import unicode_literals

import re

from wagtailregulations.parser.integer_conversion import (
Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/parser/payload.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import datetime
import logging

Expand Down
3 changes: 0 additions & 3 deletions wagtailregulations/parser/regtable.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import unicode_literals


class RegTable(object):
"""Assemble table from XML and deliver an HTML table."""

Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/scripts/ecfr_importer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import datetime
import logging
import re
Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/scripts/insert_section_links.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import logging
import re

Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, unicode_literals

import os


Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/tests/test_hooks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

from datetime import date

from django.test import TestCase
Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/tests/test_models_django.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import sys
from datetime import date, datetime, timedelta

Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/tests/test_models_pages.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

import datetime
import unittest

Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/tests/test_resolver.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.test import override_settings

from wagtail.core.models import Site
Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/tests/test_scripts.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.test import TestCase

import mock
Expand Down
2 changes: 0 additions & 2 deletions wagtailregulations/wagtail_hooks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import unicode_literals

from datetime import date

from wagtail.contrib.modeladmin.options import modeladmin_register
Expand Down

0 comments on commit 3b539f2

Please sign in to comment.