From a1e6ad7b3d6ddca62f543da10394662822532bc0 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 30 May 2020 21:23:16 +0200 Subject: [PATCH] remove future imports --- pandora/app/utils.py | 2 -- pandora/archive/chunk.py | 2 -- pandora/home/apps.py | 2 -- pandora/item/data_api.py | 2 -- pandora/oxdjango/api/__init__.py | 2 -- pandora/oxdjango/api/actions.py | 2 -- pandora/oxdjango/api/site.py | 2 -- pandora/oxdjango/api/views.py | 2 -- pandora/oxdjango/decorators.py | 2 -- pandora/sequence/extract.py | 1 - pandora/settings.py | 1 - pandora/websocket/management/commands/websocketd.py | 2 -- scripts/poster.0xdb.py | 1 - scripts/poster.indiancinema.py | 1 - scripts/poster.padma.py | 1 - scripts/poster.pandora.py | 1 - update.py | 1 - 17 files changed, 27 deletions(-) diff --git a/pandora/app/utils.py b/pandora/app/utils.py index f272e6c81..ee2e9d081 100644 --- a/pandora/app/utils.py +++ b/pandora/app/utils.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import division, with_statement - import time from .models import Settings diff --git a/pandora/archive/chunk.py b/pandora/archive/chunk.py index 148ba24f3..8422051e7 100644 --- a/pandora/archive/chunk.py +++ b/pandora/archive/chunk.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import division, with_statement - import os import ox diff --git a/pandora/home/apps.py b/pandora/home/apps.py index 1d6cbbdf0..90dc7137f 100644 --- a/pandora/home/apps.py +++ b/pandora/home/apps.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from django.apps import AppConfig diff --git a/pandora/item/data_api.py b/pandora/item/data_api.py index 81d9d72c7..0c06015f2 100644 --- a/pandora/item/data_api.py +++ b/pandora/item/data_api.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import division, with_statement - import ox from django.conf import settings diff --git a/pandora/oxdjango/api/__init__.py b/pandora/oxdjango/api/__init__.py index 4ecadf1d4..72294dc69 100644 --- a/pandora/oxdjango/api/__init__.py +++ b/pandora/oxdjango/api/__init__.py @@ -1,3 +1 @@ -from __future__ import absolute_import - from .actions import actions diff --git a/pandora/oxdjango/api/actions.py b/pandora/oxdjango/api/actions.py index f8a91d3ab..70249914d 100644 --- a/pandora/oxdjango/api/actions.py +++ b/pandora/oxdjango/api/actions.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import division, absolute_import - import inspect import sys diff --git a/pandora/oxdjango/api/site.py b/pandora/oxdjango/api/site.py index ddd5bc490..cac1e0213 100644 --- a/pandora/oxdjango/api/site.py +++ b/pandora/oxdjango/api/site.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import - from django.urls import path from . import views diff --git a/pandora/oxdjango/api/views.py b/pandora/oxdjango/api/views.py index 1dfe74283..3a4a2e899 100644 --- a/pandora/oxdjango/api/views.py +++ b/pandora/oxdjango/api/views.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import division, absolute_import - import json from django.shortcuts import render diff --git a/pandora/oxdjango/decorators.py b/pandora/oxdjango/decorators.py index bd6942e52..e631daef8 100644 --- a/pandora/oxdjango/decorators.py +++ b/pandora/oxdjango/decorators.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import - from functools import wraps from .shortcuts import render_to_json_response diff --git a/pandora/sequence/extract.py b/pandora/sequence/extract.py index 5cbcda502..930131cd6 100644 --- a/pandora/sequence/extract.py +++ b/pandora/sequence/extract.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import division import os from PIL import Image diff --git a/pandora/settings.py b/pandora/settings.py index 6cb4f3476..99eda0ba7 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -2,7 +2,6 @@ # Django settings for pan.do/ra project defaults, # create local_settings.py to overwrite # check pan.do/ra section below for relevant settings -from __future__ import absolute_import import os from os.path import join, normpath, dirname diff --git a/pandora/websocket/management/commands/websocketd.py b/pandora/websocket/management/commands/websocketd.py index 0eb9ed259..f93bc9d66 100644 --- a/pandora/websocket/management/commands/websocketd.py +++ b/pandora/websocket/management/commands/websocketd.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import - import os from django.core.management.base import BaseCommand diff --git a/scripts/poster.0xdb.py b/scripts/poster.0xdb.py index bd05982d8..9b9f24701 100755 --- a/scripts/poster.0xdb.py +++ b/scripts/poster.0xdb.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from __future__ import division import os from PIL import Image diff --git a/scripts/poster.indiancinema.py b/scripts/poster.indiancinema.py index 194700d55..bc37fca5e 100755 --- a/scripts/poster.indiancinema.py +++ b/scripts/poster.indiancinema.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from __future__ import division import os from PIL import Image diff --git a/scripts/poster.padma.py b/scripts/poster.padma.py index 81ec3dfeb..015aaa9b8 100755 --- a/scripts/poster.padma.py +++ b/scripts/poster.padma.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from __future__ import division import os from PIL import Image diff --git a/scripts/poster.pandora.py b/scripts/poster.pandora.py index 6177efd8a..5f1965623 100755 --- a/scripts/poster.pandora.py +++ b/scripts/poster.pandora.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from __future__ import division import os from PIL import Image diff --git a/update.py b/update.py index 566d23f9a..3a2c7a40c 100755 --- a/update.py +++ b/update.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -from __future__ import print_function import json import os import shutil