From 7b8bcec96a07ff6a4746e6d1c9a60ac5ff8b7735 Mon Sep 17 00:00:00 2001 From: Andy Zickler Date: Thu, 26 Oct 2023 07:06:56 -0400 Subject: [PATCH] Remove future and future imports We haven't supported python 2 for a while. * Removes unused future from requirements.txt * Removes import of print_function resolves #87 --- fixture_magic/management/commands/custom_dump.py | 2 -- fixture_magic/management/commands/dump_object.py | 2 -- fixture_magic/management/commands/merge_fixtures.py | 2 -- fixture_magic/management/commands/reorder_fixtures.py | 2 -- requirements.txt | 1 - 5 files changed, 9 deletions(-) diff --git a/fixture_magic/management/commands/custom_dump.py b/fixture_magic/management/commands/custom_dump.py index dbe2783..9560e4e 100644 --- a/fixture_magic/management/commands/custom_dump.py +++ b/fixture_magic/management/commands/custom_dump.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import sys try: diff --git a/fixture_magic/management/commands/dump_object.py b/fixture_magic/management/commands/dump_object.py index 8467b6f..5b347de 100644 --- a/fixture_magic/management/commands/dump_object.py +++ b/fixture_magic/management/commands/dump_object.py @@ -1,5 +1,3 @@ -from __future__ import print_function - from django.core.exceptions import FieldError, ObjectDoesNotExist from django.core.management.base import BaseCommand, CommandError from django.core.serializers import serialize diff --git a/fixture_magic/management/commands/merge_fixtures.py b/fixture_magic/management/commands/merge_fixtures.py index dd36e00..e0d9851 100644 --- a/fixture_magic/management/commands/merge_fixtures.py +++ b/fixture_magic/management/commands/merge_fixtures.py @@ -1,5 +1,3 @@ -from __future__ import print_function - try: import json except ImportError: diff --git a/fixture_magic/management/commands/reorder_fixtures.py b/fixture_magic/management/commands/reorder_fixtures.py index 18c2291..5fd81e4 100644 --- a/fixture_magic/management/commands/reorder_fixtures.py +++ b/fixture_magic/management/commands/reorder_fixtures.py @@ -1,5 +1,3 @@ -from __future__ import print_function - try: import json except ImportError: diff --git a/requirements.txt b/requirements.txt index da47c39..e69de29 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +0,0 @@ -future==0.18.2 # Do we need this anymore?