Remove encoding header

Fixes #2996
This commit is contained in:
Matthias 2022-05-15 20:33:00 +02:00
parent 432fd9b8e6
commit ecccfbd546
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093
51 changed files with 0 additions and 149 deletions

View File

@ -2,9 +2,6 @@
Main JSON interface views Main JSON interface views
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django.conf import settings from django.conf import settings
from django.http import JsonResponse from django.http import JsonResponse

View File

@ -1,7 +1,5 @@
""" Custom fields used in InvenTree """ """ Custom fields used in InvenTree """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys import sys
from .validators import allowable_url_schemes from .validators import allowable_url_schemes

View File

@ -2,8 +2,6 @@
Helper forms which subclass Django forms to provide additional functionality Helper forms which subclass Django forms to provide additional functionality
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from urllib.parse import urlencode from urllib.parse import urlencode
import logging import logging

View File

@ -2,9 +2,6 @@
Serializers used in various InvenTree apps Serializers used in various InvenTree apps
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
import tablib import tablib

View File

@ -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). as JSON objects and passing them to modal forms (using jQuery / bootstrap).
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
import json import json

View File

@ -2,9 +2,6 @@
JSON API for the Build app JSON API for the Build app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.urls import include, re_path from django.urls import include, re_path
from rest_framework import filters, generics from rest_framework import filters, generics

View File

@ -2,8 +2,6 @@
Build database model definitions Build database model definitions
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import decimal import decimal
import os import os

View File

@ -2,9 +2,6 @@
JSON serializers for Build API JSON serializers for Build API
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import transaction from django.db import transaction
from django.core.exceptions import ValidationError as DjangoValidationError from django.core.exceptions import ValidationError as DjangoValidationError
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@ -2,9 +2,6 @@
Django views for interacting with Build objects 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.utils.translation import gettext_lazy as _
from django.views.generic import DetailView, ListView from django.views.generic import DetailView, ListView

View File

@ -2,9 +2,6 @@
Provides a JSON API for common components. Provides a JSON API for common components.
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json import json
from django.http.response import HttpResponse from django.http.response import HttpResponse

View File

@ -2,9 +2,6 @@
Django forms for interacting with common objects Django forms for interacting with common objects
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms from django import forms
from django.utils.translation import gettext as _ from django.utils.translation import gettext as _

View File

@ -3,9 +3,6 @@ Common database model definitions.
These models are 'generic' and do not fit a particular business logic object. These models are 'generic' and do not fit a particular business logic object.
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
import decimal import decimal
import math import math

View File

@ -2,9 +2,6 @@
JSON serializers for common components JSON serializers for common components
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from InvenTree.serializers import InvenTreeModelSerializer from InvenTree.serializers import InvenTreeModelSerializer
from InvenTree.helpers import get_objectreference from InvenTree.helpers import get_objectreference

View File

@ -2,9 +2,6 @@
User-configurable settings for the common app User-configurable settings for the common app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from moneyed import CURRENCIES from moneyed import CURRENCIES
from django.conf import settings from django.conf import settings

View File

@ -1,6 +1,3 @@
""" """
Unit tests for the views associated with the 'common' app Unit tests for the views associated with the 'common' app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

View File

@ -2,9 +2,6 @@
Django views for interacting with common models Django views for interacting with common models
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@ -2,9 +2,6 @@
Provides a JSON API for the Company app 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.rest_framework import DjangoFilterBackend
from django_filters import rest_framework as rest_filters from django_filters import rest_framework as rest_filters

View File

@ -2,9 +2,6 @@
Django Forms for interacting with Company app Django Forms for interacting with Company app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from InvenTree.forms import HelperForm from InvenTree.forms import HelperForm
from InvenTree.fields import RoundingDecimalFormField from InvenTree.fields import RoundingDecimalFormField

View File

@ -2,9 +2,6 @@
Company database model definitions Company database model definitions
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@ -1,8 +1,5 @@
""" Unit tests for Company views (see views.py) """ """ Unit tests for Company views (see views.py) """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase from django.test import TestCase
from django.urls import reverse from django.urls import reverse
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model

View File

@ -2,10 +2,6 @@
Django views for interacting with Company app 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.utils.translation import gettext_lazy as _
from django.views.generic import DetailView, ListView from django.views.generic import DetailView, ListView

View File

@ -2,9 +2,6 @@
Label printing models Label printing models
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys import sys
import os import os
import logging import logging

View File

@ -1,8 +1,5 @@
# Tests for labels # Tests for labels
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.urls import reverse from django.urls import reverse
from InvenTree.api_tester import InvenTreeAPITestCase from InvenTree.api_tester import InvenTreeAPITestCase

View File

@ -1,8 +1,5 @@
# Tests for labels # Tests for labels
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
from django.conf import settings from django.conf import settings

View File

@ -2,9 +2,6 @@
JSON API for the Order app JSON API for the Order app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.urls import include, path, re_path from django.urls import include, path, re_path
from django.db.models import Q, F from django.db.models import Q, F

View File

@ -2,9 +2,6 @@
Django Forms for interacting with Order objects Django Forms for interacting with Order objects
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms from django import forms
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@ -2,9 +2,6 @@
JSON serializers for the Order API JSON serializers for the Order API
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from decimal import Decimal from decimal import Decimal
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@ -1,8 +1,5 @@
""" Unit tests for Order views (see views.py) """ """ Unit tests for Order views (see views.py) """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase from django.test import TestCase
from django.urls import reverse from django.urls import reverse
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model

View File

@ -2,9 +2,6 @@
Django views for interacting with Order app Django views for interacting with Order app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db.utils import IntegrityError from django.db.utils import IntegrityError
from django.http.response import JsonResponse from django.http.response import JsonResponse
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404

View File

@ -2,9 +2,6 @@
Provides a JSON API for the Part app Provides a JSON API for the Part app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime import datetime
from django.urls import include, path, re_path from django.urls import include, path, re_path

View File

@ -2,9 +2,6 @@
Django Forms for interacting with Part objects Django Forms for interacting with Part objects
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms from django import forms
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@ -2,8 +2,6 @@
Part database model definitions Part database model definitions
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import decimal import decimal
import os import os

View File

@ -2,9 +2,6 @@
User-configurable settings for the Part app User-configurable settings for the Part app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from common.models import InvenTreeSetting from common.models import InvenTreeSetting

View File

@ -1,8 +1,5 @@
# Tests for Part Parameters # Tests for Part Parameters
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase, TransactionTestCase from django.test import TestCase, TransactionTestCase
import django.core.exceptions as django_exceptions import django.core.exceptions as django_exceptions

View File

@ -2,9 +2,6 @@
Django views for interacting with Part app 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.files.base import ContentFile
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.db import transaction from django.db import transaction

View File

@ -2,9 +2,6 @@
JSON API for the plugin app JSON API for the plugin app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings from django.conf import settings
from django.urls import include, re_path from django.urls import include, re_path

View File

@ -2,9 +2,6 @@
Functions for triggering and responding to server side events Functions for triggering and responding to server side events
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging import logging
from django.conf import settings from django.conf import settings

View File

@ -2,8 +2,6 @@
Plugin model definitions Plugin model definitions
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import warnings import warnings
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _

View File

@ -2,9 +2,6 @@
JSON serializers for plugin app JSON serializers for plugin app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
import subprocess import subprocess

View File

@ -2,9 +2,6 @@
Report template model definitions Report template model definitions
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
import sys import sys
import logging import logging

View File

@ -2,9 +2,6 @@
JSON API for the Stock app JSON API for the Stock app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from collections import OrderedDict from collections import OrderedDict
from datetime import datetime, timedelta from datetime import datetime, timedelta

View File

@ -2,9 +2,6 @@
Django Forms for interacting with Stock app Django Forms for interacting with Stock app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from InvenTree.forms import HelperForm from InvenTree.forms import HelperForm
from .models import StockItem, StockItemTracking from .models import StockItem, StockItemTracking

View File

@ -2,10 +2,6 @@
Stock database model definitions Stock database model definitions
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
from jinja2 import Template from jinja2 import Template

View File

@ -2,9 +2,6 @@
JSON serializers for Stock app JSON serializers for Stock app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from decimal import Decimal from decimal import Decimal
from datetime import datetime, timedelta from datetime import datetime, timedelta
from django.db import transaction from django.db import transaction

View File

@ -2,9 +2,6 @@
Unit testing for the Stock API Unit testing for the Stock API
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
import io import io
import tablib import tablib

View File

@ -2,9 +2,6 @@
Django views for interacting with Stock app Django views for interacting with Stock app
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime from datetime import datetime
from django.views.generic import DetailView, ListView from django.views.generic import DetailView, ListView

View File

@ -2,9 +2,6 @@
Test that the root API endpoint is available. Test that the root API endpoint is available.
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json import json
import requests import requests

View File

@ -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. They should only contain template tags that render static information.
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys import sys
import re import re
import os import os

View File

@ -1,8 +1,5 @@
""" Check that there are no database migration files which have not been committed. """ """ Check that there are no database migration files which have not been committed. """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys import sys
import subprocess import subprocess

View File

@ -1,8 +1,5 @@
""" Check that there are no database migration files which have not been committed. """ """ Check that there are no database migration files which have not been committed. """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys import sys
import subprocess import subprocess

View File

@ -2,9 +2,6 @@
On release, ensure that the release tag matches the InvenTree version number! On release, ensure that the release tag matches the InvenTree version number!
""" """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys import sys
import re import re
import os import os