diff --git a/InvenTree/InvenTree/api.py b/InvenTree/InvenTree/api.py index 9d901516d5..e58ef798fc 100644 --- a/InvenTree/InvenTree/api.py +++ b/InvenTree/InvenTree/api.py @@ -2,9 +2,6 @@ Main JSON interface views """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.utils.translation import gettext_lazy as _ from django.conf import settings from django.http import JsonResponse diff --git a/InvenTree/InvenTree/fields.py b/InvenTree/InvenTree/fields.py index b3d81d75a5..894b993e50 100644 --- a/InvenTree/InvenTree/fields.py +++ b/InvenTree/InvenTree/fields.py @@ -1,7 +1,5 @@ """ Custom fields used in InvenTree """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals import sys from .validators import allowable_url_schemes diff --git a/InvenTree/InvenTree/forms.py b/InvenTree/InvenTree/forms.py index 8814c571dd..40e8509411 100644 --- a/InvenTree/InvenTree/forms.py +++ b/InvenTree/InvenTree/forms.py @@ -2,8 +2,6 @@ Helper forms which subclass Django forms to provide additional functionality """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals from urllib.parse import urlencode import logging diff --git a/InvenTree/InvenTree/serializers.py b/InvenTree/InvenTree/serializers.py index d3d0038cea..e16a4f1ba7 100644 --- a/InvenTree/InvenTree/serializers.py +++ b/InvenTree/InvenTree/serializers.py @@ -2,9 +2,6 @@ Serializers used in various InvenTree apps """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import tablib diff --git a/InvenTree/InvenTree/views.py b/InvenTree/InvenTree/views.py index 6291b321a8..56fd6be28f 100644 --- a/InvenTree/InvenTree/views.py +++ b/InvenTree/InvenTree/views.py @@ -5,8 +5,6 @@ In particular these views provide base functionality for rendering Django forms as JSON objects and passing them to modal forms (using jQuery / bootstrap). """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals import os import json diff --git a/InvenTree/build/api.py b/InvenTree/build/api.py index 4453232823..c8c54b3a43 100644 --- a/InvenTree/build/api.py +++ b/InvenTree/build/api.py @@ -2,9 +2,6 @@ JSON API for the Build app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.urls import include, re_path from rest_framework import filters, generics diff --git a/InvenTree/build/models.py b/InvenTree/build/models.py index a1517d73dd..fdba0b2fd8 100644 --- a/InvenTree/build/models.py +++ b/InvenTree/build/models.py @@ -2,8 +2,6 @@ Build database model definitions """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals import decimal import os diff --git a/InvenTree/build/serializers.py b/InvenTree/build/serializers.py index 0f1703750c..ebd98fefc9 100644 --- a/InvenTree/build/serializers.py +++ b/InvenTree/build/serializers.py @@ -2,9 +2,6 @@ JSON serializers for Build API """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import transaction from django.core.exceptions import ValidationError as DjangoValidationError from django.utils.translation import gettext_lazy as _ diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py index c8ac4509b8..57d8f8bd37 100644 --- a/InvenTree/build/views.py +++ b/InvenTree/build/views.py @@ -2,9 +2,6 @@ Django views for interacting with Build objects """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.utils.translation import gettext_lazy as _ from django.views.generic import DetailView, ListView diff --git a/InvenTree/common/api.py b/InvenTree/common/api.py index 1996a4bdbf..646025ab2a 100644 --- a/InvenTree/common/api.py +++ b/InvenTree/common/api.py @@ -2,9 +2,6 @@ Provides a JSON API for common components. """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import json from django.http.response import HttpResponse diff --git a/InvenTree/common/forms.py b/InvenTree/common/forms.py index 4a2a1601aa..7fcdf8535c 100644 --- a/InvenTree/common/forms.py +++ b/InvenTree/common/forms.py @@ -2,9 +2,6 @@ Django forms for interacting with common objects """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django import forms from django.utils.translation import gettext as _ diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 8b50d05413..1824e9d335 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -3,9 +3,6 @@ Common database model definitions. These models are 'generic' and do not fit a particular business logic object. """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import decimal import math diff --git a/InvenTree/common/serializers.py b/InvenTree/common/serializers.py index 8dd0f5bcee..7d0c8cc219 100644 --- a/InvenTree/common/serializers.py +++ b/InvenTree/common/serializers.py @@ -2,9 +2,6 @@ JSON serializers for common components """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from InvenTree.serializers import InvenTreeModelSerializer from InvenTree.helpers import get_objectreference diff --git a/InvenTree/common/settings.py b/InvenTree/common/settings.py index 2dd7756eba..361284d831 100644 --- a/InvenTree/common/settings.py +++ b/InvenTree/common/settings.py @@ -2,9 +2,6 @@ User-configurable settings for the common app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from moneyed import CURRENCIES from django.conf import settings diff --git a/InvenTree/common/test_views.py b/InvenTree/common/test_views.py index 7d7bfde87e..2394913c73 100644 --- a/InvenTree/common/test_views.py +++ b/InvenTree/common/test_views.py @@ -1,6 +1,3 @@ """ Unit tests for the views associated with the 'common' app """ - -# -*- coding: utf-8 -*- -from __future__ import unicode_literals diff --git a/InvenTree/common/views.py b/InvenTree/common/views.py index 7fae6f3710..f9a6a4f82a 100644 --- a/InvenTree/common/views.py +++ b/InvenTree/common/views.py @@ -2,9 +2,6 @@ Django views for interacting with common models """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from django.utils.translation import gettext_lazy as _ diff --git a/InvenTree/company/api.py b/InvenTree/company/api.py index b99fbd01fb..146a45f648 100644 --- a/InvenTree/company/api.py +++ b/InvenTree/company/api.py @@ -2,9 +2,6 @@ Provides a JSON API for the Company app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django_filters.rest_framework import DjangoFilterBackend from django_filters import rest_framework as rest_filters diff --git a/InvenTree/company/forms.py b/InvenTree/company/forms.py index 5549f66222..eaead82151 100644 --- a/InvenTree/company/forms.py +++ b/InvenTree/company/forms.py @@ -2,9 +2,6 @@ Django Forms for interacting with Company app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from InvenTree.forms import HelperForm from InvenTree.fields import RoundingDecimalFormField diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index 9b881c227e..5e93599d24 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -2,9 +2,6 @@ Company database model definitions """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from django.utils.translation import gettext_lazy as _ diff --git a/InvenTree/company/test_views.py b/InvenTree/company/test_views.py index 258090ebdb..6d28e85d23 100644 --- a/InvenTree/company/test_views.py +++ b/InvenTree/company/test_views.py @@ -1,8 +1,5 @@ """ Unit tests for Company views (see views.py) """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model diff --git a/InvenTree/company/views.py b/InvenTree/company/views.py index 6d8279558c..5f686e805e 100644 --- a/InvenTree/company/views.py +++ b/InvenTree/company/views.py @@ -2,10 +2,6 @@ Django views for interacting with Company app """ - -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.utils.translation import gettext_lazy as _ from django.views.generic import DetailView, ListView diff --git a/InvenTree/label/models.py b/InvenTree/label/models.py index 9094b957ff..7a52ed5d02 100644 --- a/InvenTree/label/models.py +++ b/InvenTree/label/models.py @@ -2,9 +2,6 @@ Label printing models """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys import os import logging diff --git a/InvenTree/label/test_api.py b/InvenTree/label/test_api.py index a444cd47dc..807de5b63e 100644 --- a/InvenTree/label/test_api.py +++ b/InvenTree/label/test_api.py @@ -1,8 +1,5 @@ # Tests for labels -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.urls import reverse from InvenTree.api_tester import InvenTreeAPITestCase diff --git a/InvenTree/label/tests.py b/InvenTree/label/tests.py index ad1aaba9c8..9e066aa91e 100644 --- a/InvenTree/label/tests.py +++ b/InvenTree/label/tests.py @@ -1,8 +1,5 @@ # Tests for labels -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from django.conf import settings diff --git a/InvenTree/order/api.py b/InvenTree/order/api.py index 7c8a93125f..f1f6780825 100644 --- a/InvenTree/order/api.py +++ b/InvenTree/order/api.py @@ -2,9 +2,6 @@ JSON API for the Order app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.urls import include, path, re_path from django.db.models import Q, F diff --git a/InvenTree/order/forms.py b/InvenTree/order/forms.py index a08cf81ab1..120d1e0923 100644 --- a/InvenTree/order/forms.py +++ b/InvenTree/order/forms.py @@ -2,9 +2,6 @@ Django Forms for interacting with Order objects """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django import forms from django.utils.translation import gettext_lazy as _ diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index c97090e4f6..a58de213ea 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -2,9 +2,6 @@ JSON serializers for the Order API """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from decimal import Decimal from django.utils.translation import gettext_lazy as _ diff --git a/InvenTree/order/test_views.py b/InvenTree/order/test_views.py index a0445e3dd6..e38ea7ecef 100644 --- a/InvenTree/order/test_views.py +++ b/InvenTree/order/test_views.py @@ -1,8 +1,5 @@ """ Unit tests for Order views (see views.py) """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model diff --git a/InvenTree/order/views.py b/InvenTree/order/views.py index f8102908e9..77b5741c3e 100644 --- a/InvenTree/order/views.py +++ b/InvenTree/order/views.py @@ -2,9 +2,6 @@ Django views for interacting with Order app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db.utils import IntegrityError from django.http.response import JsonResponse from django.shortcuts import get_object_or_404 diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 622ca38669..b71fdcacfe 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -2,9 +2,6 @@ Provides a JSON API for the Part app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import datetime from django.urls import include, path, re_path diff --git a/InvenTree/part/forms.py b/InvenTree/part/forms.py index 87210901d2..9a14d8ad25 100644 --- a/InvenTree/part/forms.py +++ b/InvenTree/part/forms.py @@ -2,9 +2,6 @@ Django Forms for interacting with Part objects """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django import forms from django.utils.translation import gettext_lazy as _ diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 96ffa581f4..2ff3f60a83 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -2,8 +2,6 @@ Part database model definitions """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals import decimal import os diff --git a/InvenTree/part/settings.py b/InvenTree/part/settings.py index e345a9d88d..41ecbb0d00 100644 --- a/InvenTree/part/settings.py +++ b/InvenTree/part/settings.py @@ -2,9 +2,6 @@ User-configurable settings for the Part app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from common.models import InvenTreeSetting diff --git a/InvenTree/part/test_param.py b/InvenTree/part/test_param.py index fe3514d807..db617f6ffb 100644 --- a/InvenTree/part/test_param.py +++ b/InvenTree/part/test_param.py @@ -1,8 +1,5 @@ # Tests for Part Parameters -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.test import TestCase, TransactionTestCase import django.core.exceptions as django_exceptions diff --git a/InvenTree/part/views.py b/InvenTree/part/views.py index f1d587e206..9aac54e7d4 100644 --- a/InvenTree/part/views.py +++ b/InvenTree/part/views.py @@ -2,9 +2,6 @@ Django views for interacting with Part app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.core.files.base import ContentFile from django.core.exceptions import ValidationError from django.db import transaction diff --git a/InvenTree/plugin/api.py b/InvenTree/plugin/api.py index f3710e4835..85721a6770 100644 --- a/InvenTree/plugin/api.py +++ b/InvenTree/plugin/api.py @@ -2,9 +2,6 @@ JSON API for the plugin app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.conf import settings from django.urls import include, re_path diff --git a/InvenTree/plugin/base/event/events.py b/InvenTree/plugin/base/event/events.py index 59dfdce86a..4b9c44521d 100644 --- a/InvenTree/plugin/base/event/events.py +++ b/InvenTree/plugin/base/event/events.py @@ -2,9 +2,6 @@ Functions for triggering and responding to server side events """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import logging from django.conf import settings diff --git a/InvenTree/plugin/models.py b/InvenTree/plugin/models.py index 3d2d143eea..3caa69e709 100644 --- a/InvenTree/plugin/models.py +++ b/InvenTree/plugin/models.py @@ -2,8 +2,6 @@ Plugin model definitions """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals import warnings from django.utils.translation import gettext_lazy as _ diff --git a/InvenTree/plugin/serializers.py b/InvenTree/plugin/serializers.py index b3c0471635..c80115342a 100644 --- a/InvenTree/plugin/serializers.py +++ b/InvenTree/plugin/serializers.py @@ -2,9 +2,6 @@ JSON serializers for plugin app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import subprocess diff --git a/InvenTree/report/models.py b/InvenTree/report/models.py index 32ba9077b1..8632189982 100644 --- a/InvenTree/report/models.py +++ b/InvenTree/report/models.py @@ -2,9 +2,6 @@ Report template model definitions """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import sys import logging diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index 96a893e914..ec204354bd 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -2,9 +2,6 @@ JSON API for the Stock app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from collections import OrderedDict from datetime import datetime, timedelta diff --git a/InvenTree/stock/forms.py b/InvenTree/stock/forms.py index 7d419ab478..7e615b5eae 100644 --- a/InvenTree/stock/forms.py +++ b/InvenTree/stock/forms.py @@ -2,9 +2,6 @@ Django Forms for interacting with Stock app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from InvenTree.forms import HelperForm from .models import StockItem, StockItemTracking diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index a46d43b007..e5fac16355 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -2,10 +2,6 @@ Stock database model definitions """ - -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os from jinja2 import Template diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index 6b27b87f93..40303fc120 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -2,9 +2,6 @@ JSON serializers for Stock app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from decimal import Decimal from datetime import datetime, timedelta from django.db import transaction diff --git a/InvenTree/stock/test_api.py b/InvenTree/stock/test_api.py index 1f040b008d..28a8e0de0b 100644 --- a/InvenTree/stock/test_api.py +++ b/InvenTree/stock/test_api.py @@ -2,9 +2,6 @@ Unit testing for the Stock API """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import os import io import tablib diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index 168403d692..15191b5fb7 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -2,9 +2,6 @@ Django views for interacting with Stock app """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from datetime import datetime from django.views.generic import DetailView, ListView diff --git a/ci/check_api_endpoint.py b/ci/check_api_endpoint.py index 2969c64792..0d110379ef 100644 --- a/ci/check_api_endpoint.py +++ b/ci/check_api_endpoint.py @@ -2,9 +2,6 @@ Test that the root API endpoint is available. """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import json import requests diff --git a/ci/check_js_templates.py b/ci/check_js_templates.py index 71b9912f3a..4f35e57eb4 100644 --- a/ci/check_js_templates.py +++ b/ci/check_js_templates.py @@ -7,9 +7,6 @@ This is because the "translated" javascript files are compiled into the "static" They should only contain template tags that render static information. """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys import re import os diff --git a/ci/check_locale_files.py b/ci/check_locale_files.py index 06246cd923..d17fe27e3d 100644 --- a/ci/check_locale_files.py +++ b/ci/check_locale_files.py @@ -1,8 +1,5 @@ """ Check that there are no database migration files which have not been committed. """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys import subprocess diff --git a/ci/check_migration_files.py b/ci/check_migration_files.py index 8ef0ada13d..16bd87485d 100644 --- a/ci/check_migration_files.py +++ b/ci/check_migration_files.py @@ -1,8 +1,5 @@ """ Check that there are no database migration files which have not been committed. """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys import subprocess diff --git a/ci/check_version_number.py b/ci/check_version_number.py index 0514854407..b5ab7f65a2 100644 --- a/ci/check_version_number.py +++ b/ci/check_version_number.py @@ -2,9 +2,6 @@ On release, ensure that the release tag matches the InvenTree version number! """ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - import sys import re import os