From 74a7ee923984ab7696b8a6ddf26ea876397fd923 Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Sat, 23 Jul 2022 11:52:28 +0200 Subject: [PATCH] Remove remaining __future__ imports. --- django_migration_linter/migration_linter.py | 2 -- django_migration_linter/utils.py | 2 -- .../migrations/0001_initial.py | 2 +- .../migrations/0002_a_not_null_field.py | 2 +- .../app_add_not_null_column_followed_by_default/models.py | 2 +- tests/test_project/app_alter_column/migrations/0001_initial.py | 2 +- .../app_alter_column/migrations/0002_auto_20190414_1456.py | 2 +- tests/test_project/app_alter_column/models.py | 2 +- .../migrations/0001_initial.py | 2 +- .../app_create_table_with_not_null_column/models.py | 2 +- tests/test_project/app_drop_column/migrations/0001_initial.py | 2 +- .../app_drop_column/migrations/0002_remove_a_field_b.py | 2 +- tests/test_project/app_drop_column/models.py | 2 +- tests/test_project/app_drop_table/migrations/0001_initial.py | 2 +- tests/test_project/app_drop_table/models.py | 2 +- tests/test_project/app_rename_column/migrations/0001_initial.py | 2 +- .../app_rename_column/migrations/0002_auto_20190414_1502.py | 2 +- tests/test_project/app_rename_column/models.py | 2 +- tests/test_project/app_rename_table/migrations/0001_initial.py | 2 +- .../app_rename_table/migrations/0002_auto_20190414_1500.py | 2 +- tests/test_project/app_rename_table/models.py | 2 +- 21 files changed, 19 insertions(+), 23 deletions(-) diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index 99e72f9..f00fccb 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import hashlib import inspect import logging diff --git a/django_migration_linter/utils.py b/django_migration_linter/utils.py index 2dad70a..25b3a1d 100644 --- a/django_migration_linter/utils.py +++ b/django_migration_linter/utils.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import os from importlib import import_module diff --git a/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0001_initial.py b/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0001_initial.py index 6b7326b..1c2e733 100644 --- a/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0001_initial.py +++ b/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0001_initial.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:54 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0002_a_not_null_field.py b/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0002_a_not_null_field.py index 70ee13c..ecae8c4 100644 --- a/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0002_a_not_null_field.py +++ b/tests/test_project/app_add_not_null_column_followed_by_default/migrations/0002_a_not_null_field.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:55 -from __future__ import unicode_literals + from django.db import migrations, models from django_add_default_value import AddDefaultValue diff --git a/tests/test_project/app_add_not_null_column_followed_by_default/models.py b/tests/test_project/app_add_not_null_column_followed_by_default/models.py index 9bf31bc..dc36d7a 100644 --- a/tests/test_project/app_add_not_null_column_followed_by_default/models.py +++ b/tests/test_project/app_add_not_null_column_followed_by_default/models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + from django.db import models diff --git a/tests/test_project/app_alter_column/migrations/0001_initial.py b/tests/test_project/app_alter_column/migrations/0001_initial.py index d709d39..5bd7c13 100644 --- a/tests/test_project/app_alter_column/migrations/0001_initial.py +++ b/tests/test_project/app_alter_column/migrations/0001_initial.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:56 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_alter_column/migrations/0002_auto_20190414_1456.py b/tests/test_project/app_alter_column/migrations/0002_auto_20190414_1456.py index 2f2dc24..418694d 100644 --- a/tests/test_project/app_alter_column/migrations/0002_auto_20190414_1456.py +++ b/tests/test_project/app_alter_column/migrations/0002_auto_20190414_1456.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:56 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_alter_column/models.py b/tests/test_project/app_alter_column/models.py index 9432421..7a66306 100644 --- a/tests/test_project/app_alter_column/models.py +++ b/tests/test_project/app_alter_column/models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + from django.db import models diff --git a/tests/test_project/app_create_table_with_not_null_column/migrations/0001_initial.py b/tests/test_project/app_create_table_with_not_null_column/migrations/0001_initial.py index 0eb92ac..a4583b3 100644 --- a/tests/test_project/app_create_table_with_not_null_column/migrations/0001_initial.py +++ b/tests/test_project/app_create_table_with_not_null_column/migrations/0001_initial.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:59 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_create_table_with_not_null_column/models.py b/tests/test_project/app_create_table_with_not_null_column/models.py index aee4c79..cbc1a32 100644 --- a/tests/test_project/app_create_table_with_not_null_column/models.py +++ b/tests/test_project/app_create_table_with_not_null_column/models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + from django.db import models diff --git a/tests/test_project/app_drop_column/migrations/0001_initial.py b/tests/test_project/app_drop_column/migrations/0001_initial.py index 6e3755c..4822b7e 100644 --- a/tests/test_project/app_drop_column/migrations/0001_initial.py +++ b/tests/test_project/app_drop_column/migrations/0001_initial.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:59 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_drop_column/migrations/0002_remove_a_field_b.py b/tests/test_project/app_drop_column/migrations/0002_remove_a_field_b.py index a040984..cbdc45b 100644 --- a/tests/test_project/app_drop_column/migrations/0002_remove_a_field_b.py +++ b/tests/test_project/app_drop_column/migrations/0002_remove_a_field_b.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:59 -from __future__ import unicode_literals + from django.db import migrations diff --git a/tests/test_project/app_drop_column/models.py b/tests/test_project/app_drop_column/models.py index 3dfc12b..88ebe09 100644 --- a/tests/test_project/app_drop_column/models.py +++ b/tests/test_project/app_drop_column/models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + from django.db import models diff --git a/tests/test_project/app_drop_table/migrations/0001_initial.py b/tests/test_project/app_drop_table/migrations/0001_initial.py index 1d2c279..daba3a2 100644 --- a/tests/test_project/app_drop_table/migrations/0001_initial.py +++ b/tests/test_project/app_drop_table/migrations/0001_initial.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 14:59 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_drop_table/models.py b/tests/test_project/app_drop_table/models.py index 7e3013c..d9a08a5 100644 --- a/tests/test_project/app_drop_table/models.py +++ b/tests/test_project/app_drop_table/models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + from django.db import models diff --git a/tests/test_project/app_rename_column/migrations/0001_initial.py b/tests/test_project/app_rename_column/migrations/0001_initial.py index c2f645f..1eadd61 100644 --- a/tests/test_project/app_rename_column/migrations/0001_initial.py +++ b/tests/test_project/app_rename_column/migrations/0001_initial.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 15:02 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_rename_column/migrations/0002_auto_20190414_1502.py b/tests/test_project/app_rename_column/migrations/0002_auto_20190414_1502.py index 902a9f3..e960626 100644 --- a/tests/test_project/app_rename_column/migrations/0002_auto_20190414_1502.py +++ b/tests/test_project/app_rename_column/migrations/0002_auto_20190414_1502.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 15:02 -from __future__ import unicode_literals + from django.db import migrations diff --git a/tests/test_project/app_rename_column/models.py b/tests/test_project/app_rename_column/models.py index 493b10e..585059d 100644 --- a/tests/test_project/app_rename_column/models.py +++ b/tests/test_project/app_rename_column/models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + from django.db import models diff --git a/tests/test_project/app_rename_table/migrations/0001_initial.py b/tests/test_project/app_rename_table/migrations/0001_initial.py index ea12d28..5ecb586 100644 --- a/tests/test_project/app_rename_table/migrations/0001_initial.py +++ b/tests/test_project/app_rename_table/migrations/0001_initial.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 15:00 -from __future__ import unicode_literals + from django.db import migrations, models diff --git a/tests/test_project/app_rename_table/migrations/0002_auto_20190414_1500.py b/tests/test_project/app_rename_table/migrations/0002_auto_20190414_1500.py index 922899e..6ba5f06 100644 --- a/tests/test_project/app_rename_table/migrations/0002_auto_20190414_1500.py +++ b/tests/test_project/app_rename_table/migrations/0002_auto_20190414_1500.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-04-14 15:00 -from __future__ import unicode_literals + from django.db import migrations diff --git a/tests/test_project/app_rename_table/models.py b/tests/test_project/app_rename_table/models.py index 76cfe6a..3f00563 100644 --- a/tests/test_project/app_rename_table/models.py +++ b/tests/test_project/app_rename_table/models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + from django.db import models